Mercurial > SDL_sound_CoreAudio
diff decoders/midi.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 |
line wrap: on
line diff
--- a/decoders/midi.c Sun Apr 21 17:48:11 2002 +0000 +++ b/decoders/midi.c Sun Apr 21 18:39:47 2002 +0000 @@ -53,6 +53,7 @@ static void MIDI_close(Sound_Sample *sample); static Uint32 MIDI_read(Sound_Sample *sample); static int MIDI_rewind(Sound_Sample *sample); +static int MIDI_seek(Sound_Sample *sample, Uint32 ms); static const char *extensions_midi[] = { "MIDI", "MID", NULL }; const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI = @@ -69,7 +70,8 @@ MIDI_open, /* open() method */ MIDI_close, /* close() method */ MIDI_read, /* read() method */ - MIDI_rewind /* rewind() method */ + MIDI_rewind, /* rewind() method */ + MIDI_seek /* seek() method */ }; @@ -157,6 +159,12 @@ return(1); } /* MIDI_rewind */ + +static int MIDI_seek(Sound_Sample *sample, Uint32 ms) +{ + BAIL_MACRO("!!! FIXME: Not implemented", 0); +} /* MIDI_seek */ + #endif /* SOUND_SUPPORTS_MIDI */