Mercurial > SDL_sound_CoreAudio
comparison decoders/mikmod.c @ 312:498240aa76f1
Seek implementations.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Wed, 24 Apr 2002 20:47:21 +0000 |
parents | c97be6e1bd27 |
children | 069ce624d6cf |
comparison
equal
deleted
inserted
replaced
311:d62c05322a3e | 312:498240aa76f1 |
---|---|
249 internal->decoder_private = (void *) module; | 249 internal->decoder_private = (void *) module; |
250 | 250 |
251 Player_Start(module); | 251 Player_Start(module); |
252 Player_SetPosition(0); | 252 Player_SetPosition(0); |
253 | 253 |
254 sample->flags = SOUND_SAMPLEFLAG_CANSEEK; | 254 sample->flags = SOUND_SAMPLEFLAG_NONE; |
255 | 255 |
256 SNDDBG(("MIKMOD: Name: %s\n", module->songname)); | 256 SNDDBG(("MIKMOD: Name: %s\n", module->songname)); |
257 SNDDBG(("MIKMOD: Type: %s\n", module->modtype)); | 257 SNDDBG(("MIKMOD: Type: %s\n", module->modtype)); |
258 SNDDBG(("MIKMOD: Accepting data stream\n")); | 258 SNDDBG(("MIKMOD: Accepting data stream\n")); |
259 | 259 |
297 } /* MIKMOD_rewind */ | 297 } /* MIKMOD_rewind */ |
298 | 298 |
299 | 299 |
300 static int MIKMOD_seek(Sound_Sample *sample, Uint32 ms) | 300 static int MIKMOD_seek(Sound_Sample *sample, Uint32 ms) |
301 { | 301 { |
302 #if 0 | |
303 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque; | |
304 MODULE *module = (MODULE *) internal->decoder_private; | |
305 | |
306 /* | |
307 * Heaven may know what the argument to Player_SetPosition() is. | |
308 * I, however, haven't the faintest idea. | |
309 */ | |
310 Player_Start(module); | |
311 Player_SetPosition(ms); | |
312 return(1); | |
313 #else | |
302 BAIL_MACRO("!!! FIXME: Not implemented", 0); | 314 BAIL_MACRO("!!! FIXME: Not implemented", 0); |
315 #endif | |
303 } /* MIKMOD_seek */ | 316 } /* MIKMOD_seek */ |
304 | 317 |
305 #endif /* SOUND_SUPPORTS_MIKMOD */ | 318 #endif /* SOUND_SUPPORTS_MIKMOD */ |
306 | 319 |
307 | 320 |