comparison decoders/modplug.c @ 306:c97be6e1bd27

Added framework for Sound_Seek() support.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 21 Apr 2002 18:39:47 +0000
parents d3dc34315ac7
children 498240aa76f1
comparison
equal deleted inserted replaced
305:c345a40a8a99 306:c97be6e1bd27
48 static void MODPLUG_quit(void); 48 static void MODPLUG_quit(void);
49 static int MODPLUG_open(Sound_Sample *sample, const char *ext); 49 static int MODPLUG_open(Sound_Sample *sample, const char *ext);
50 static void MODPLUG_close(Sound_Sample *sample); 50 static void MODPLUG_close(Sound_Sample *sample);
51 static Uint32 MODPLUG_read(Sound_Sample *sample); 51 static Uint32 MODPLUG_read(Sound_Sample *sample);
52 static int MODPLUG_rewind(Sound_Sample *sample); 52 static int MODPLUG_rewind(Sound_Sample *sample);
53 static int MODPLUG_seek(Sound_Sample *sample, Uint32 ms);
53 54
54 static const char *extensions_modplug[] = 55 static const char *extensions_modplug[] =
55 { 56 {
56 /* The XMMS plugin is apparently able to load compressed modules as 57 /* The XMMS plugin is apparently able to load compressed modules as
57 * well, but libmodplug does not handle this. 58 * well, but libmodplug does not handle this.
95 MODPLUG_init, /* init() method */ 96 MODPLUG_init, /* init() method */
96 MODPLUG_quit, /* quit() method */ 97 MODPLUG_quit, /* quit() method */
97 MODPLUG_open, /* open() method */ 98 MODPLUG_open, /* open() method */
98 MODPLUG_close, /* close() method */ 99 MODPLUG_close, /* close() method */
99 MODPLUG_read, /* read() method */ 100 MODPLUG_read, /* read() method */
100 MODPLUG_rewind /* rewind() method */ 101 MODPLUG_rewind, /* rewind() method */
102 MODPLUG_seek /* seek() method */
101 }; 103 };
102 104
103 105
104 static int MODPLUG_init(void) 106 static int MODPLUG_init(void)
105 { 107 {
242 244
243 ModPlug_Seek(module, 0); 245 ModPlug_Seek(module, 0);
244 return(1); 246 return(1);
245 } /* MODPLUG_rewind */ 247 } /* MODPLUG_rewind */
246 248
249
250 static int MODPLUG_seek(Sound_Sample *sample, Uint32 ms)
251 {
252 BAIL_MACRO("!!! FIXME: Not implemented", 0);
253 } /* MODPLUG_seek */
254
247 #endif /* SOUND_SUPPORTS_MODPLUG */ 255 #endif /* SOUND_SUPPORTS_MODPLUG */
248 256
249 257
250 /* end of modplug.c ... */ 258 /* end of modplug.c ... */