Mercurial > SDL_sound_CoreAudio
diff decoders/midi.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 | f75ed2d72238 |
children | d3dc34315ac7 |
line wrap: on
line diff
--- a/decoders/midi.c Thu Jan 17 20:53:03 2002 +0000 +++ b/decoders/midi.c Thu Jan 17 20:53:53 2002 +0000 @@ -52,6 +52,7 @@ static int MIDI_open(Sound_Sample *sample, const char *ext); static void MIDI_close(Sound_Sample *sample); static Uint32 MIDI_read(Sound_Sample *sample); +static int MIDI_rewind(Sound_Sample *sample); static const char *extensions_midi[] = { "MIDI", "MID", NULL }; const Sound_DecoderFunctions __Sound_DecoderFunctions_MIDI = @@ -63,11 +64,12 @@ "http://www.icculus.org/SDL_sound/" }, - MIDI_init, /* init() method */ - MIDI_quit, /* quit() method */ - MIDI_open, /* open() method */ - MIDI_close, /* close() method */ - MIDI_read /* read() method */ + MIDI_init, /* init() method */ + MIDI_quit, /* quit() method */ + MIDI_open, /* open() method */ + MIDI_close, /* close() method */ + MIDI_read, /* read() method */ + MIDI_rewind /* rewind() method */ }; @@ -145,6 +147,16 @@ return(retval); } /* MIDI_read */ + +static int MIDI_rewind(Sound_Sample *sample) +{ + /* !!! FIXME. */ + SNDDBG(("MIDI_rewind(): Write me!\n")); + assert(0); + return(0); +} /* MIDI_rewind */ + + #endif /* SOUND_SUPPORTS_MIDI */