comparison decoders/mikmod.c @ 221:c9772a9f5271

Initial implementation or stubs for rewind method. Other cleanups.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 17 Jan 2002 20:53:53 +0000
parents b35c04e4691e
children d3dc34315ac7
comparison
equal deleted inserted replaced
220:ef72f3c490e7 221:c9772a9f5271
48 static int MIKMOD_init(void); 48 static int MIKMOD_init(void);
49 static void MIKMOD_quit(void); 49 static void MIKMOD_quit(void);
50 static int MIKMOD_open(Sound_Sample *sample, const char *ext); 50 static int MIKMOD_open(Sound_Sample *sample, const char *ext);
51 static void MIKMOD_close(Sound_Sample *sample); 51 static void MIKMOD_close(Sound_Sample *sample);
52 static Uint32 MIKMOD_read(Sound_Sample *sample); 52 static Uint32 MIKMOD_read(Sound_Sample *sample);
53 static int MIKMOD_rewind(Sound_Sample *sample);
53 54
54 static const char *extensions_mikmod[] = 55 static const char *extensions_mikmod[] =
55 { 56 {
56 "669", /* Composer 669 */ 57 "669", /* Composer 669 */
57 "AMF", /* DMP Advanced Module Format */ 58 "AMF", /* DMP Advanced Module Format */
81 "Play modules through MikMod", 82 "Play modules through MikMod",
82 "Torbjörn Andersson <d91tan@Update.UU.SE>", 83 "Torbjörn Andersson <d91tan@Update.UU.SE>",
83 "http://www.mikmod.org/" 84 "http://www.mikmod.org/"
84 }, 85 },
85 86
86 MIKMOD_init, /* init() method */ 87 MIKMOD_init, /* init() method */
87 MIKMOD_quit, /* quit() method */ 88 MIKMOD_quit, /* quit() method */
88 MIKMOD_open, /* open() method */ 89 MIKMOD_open, /* open() method */
89 MIKMOD_close, /* close() method */ 90 MIKMOD_close, /* close() method */
90 MIKMOD_read /* read() method */ 91 MIKMOD_read, /* read() method */
92 MIKMOD_rewind /* rewind() method */
91 }; 93 };
92 94
93 95
94 /* Make MikMod read from a RWops... */ 96 /* Make MikMod read from a RWops... */
95 97
280 return(0); 282 return(0);
281 } /* if */ 283 } /* if */
282 return((Uint32) VC_WriteBytes(internal->buffer, internal->buffer_size)); 284 return((Uint32) VC_WriteBytes(internal->buffer, internal->buffer_size));
283 } /* MIKMOD_read */ 285 } /* MIKMOD_read */
284 286
287
288 static int MIKMOD_rewind(Sound_Sample *sample)
289 {
290 /* !!! FIXME. */
291 SNDDBG(("MIKMOD_rewind(): Write me!\n"));
292 assert(0);
293 return(0);
294 } /* MIKMOD_rewind */
295
296
297
285 #endif /* SOUND_SUPPORTS_MIKMOD */ 298 #endif /* SOUND_SUPPORTS_MIKMOD */
286 299
287 300
288 /* end of mikmod.c ... */ 301 /* end of mikmod.c ... */