comparison src/wavpack/libwavpack.cxx @ 372:a157306caf03 trunk

[svn] - finalize the plugin-side of the extension-assist ABI
author nenolod
date Tue, 12 Dec 2006 19:43:23 -0800
parents c812e846b84e
children 7385182ae4b8
comparison
equal deleted inserted replaced
371:96cbec520f57 372:a157306caf03
53 extern gboolean clipPreventionEnabled; 53 extern gboolean clipPreventionEnabled;
54 extern gboolean dynBitrateEnabled; 54 extern gboolean dynBitrateEnabled;
55 extern gboolean replaygainEnabled; 55 extern gboolean replaygainEnabled;
56 extern gboolean albumReplaygainEnabled; 56 extern gboolean albumReplaygainEnabled;
57 extern gboolean openedAudio; 57 extern gboolean openedAudio;
58
59 gchar *wv_fmts[] = { "wv", NULL };
58 60
59 InputPlugin mod = { 61 InputPlugin mod = {
60 NULL, //handle 62 NULL, //handle
61 NULL, //filename 63 NULL, //filename
62 NULL, 64 NULL,
83 NULL, //output 85 NULL, //output
84 wv_get_song_tuple, 86 wv_get_song_tuple,
85 NULL, 87 NULL,
86 NULL, 88 NULL,
87 wv_is_our_fd, 89 wv_is_our_fd,
88 { "wv", NULL }, 90 wv_fmts,
89 }; 91 };
90 92
91 int32_t read_bytes (void *id, void *data, int32_t bcount) 93 int32_t read_bytes (void *id, void *data, int32_t bcount)
92 { 94 {
93 return vfs_fread (data, 1, bcount, (VFSFile *) id); 95 return vfs_fread (data, 1, bcount, (VFSFile *) id);