Mercurial > SDL_sound_CoreAudio
comparison decoders/mikmod.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 | c345a40a8a99 |
children | 498240aa76f1 |
comparison
equal
deleted
inserted
replaced
305:c345a40a8a99 | 306:c97be6e1bd27 |
---|---|
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 static int MIKMOD_rewind(Sound_Sample *sample); |
54 static int MIKMOD_seek(Sound_Sample *sample, Uint32 ms); | |
54 | 55 |
55 static const char *extensions_mikmod[] = | 56 static const char *extensions_mikmod[] = |
56 { | 57 { |
57 "669", /* Composer 669 */ | 58 "669", /* Composer 669 */ |
58 "AMF", /* DMP Advanced Module Format */ | 59 "AMF", /* DMP Advanced Module Format */ |
87 MIKMOD_init, /* init() method */ | 88 MIKMOD_init, /* init() method */ |
88 MIKMOD_quit, /* quit() method */ | 89 MIKMOD_quit, /* quit() method */ |
89 MIKMOD_open, /* open() method */ | 90 MIKMOD_open, /* open() method */ |
90 MIKMOD_close, /* close() method */ | 91 MIKMOD_close, /* close() method */ |
91 MIKMOD_read, /* read() method */ | 92 MIKMOD_read, /* read() method */ |
92 MIKMOD_rewind /* rewind() method */ | 93 MIKMOD_rewind, /* rewind() method */ |
94 MIKMOD_seek /* seek() method */ | |
93 }; | 95 }; |
94 | 96 |
95 | 97 |
96 /* Make MikMod read from a RWops... */ | 98 /* Make MikMod read from a RWops... */ |
97 | 99 |
293 Player_SetPosition(0); | 295 Player_SetPosition(0); |
294 return(1); | 296 return(1); |
295 } /* MIKMOD_rewind */ | 297 } /* MIKMOD_rewind */ |
296 | 298 |
297 | 299 |
300 static int MIKMOD_seek(Sound_Sample *sample, Uint32 ms) | |
301 { | |
302 BAIL_MACRO("!!! FIXME: Not implemented", 0); | |
303 } /* MIKMOD_seek */ | |
298 | 304 |
299 #endif /* SOUND_SUPPORTS_MIKMOD */ | 305 #endif /* SOUND_SUPPORTS_MIKMOD */ |
300 | 306 |
301 | 307 |
302 /* end of mikmod.c ... */ | 308 /* end of mikmod.c ... */ |