comparison decoders/midi.c @ 231:d3dc34315ac7

Rewind method implemented by Torbj�rn.
author Ryan C. Gordon <icculus@icculus.org>
date Sat, 19 Jan 2002 16:58:34 +0000
parents c9772a9f5271
children c97be6e1bd27
comparison
equal deleted inserted replaced
230:aa4137f121e4 231:d3dc34315ac7
148 } /* MIDI_read */ 148 } /* MIDI_read */
149 149
150 150
151 static int MIDI_rewind(Sound_Sample *sample) 151 static int MIDI_rewind(Sound_Sample *sample)
152 { 152 {
153 /* !!! FIXME. */ 153 Sound_SampleInternal *internal = (Sound_SampleInternal *) sample->opaque;
154 SNDDBG(("MIDI_rewind(): Write me!\n")); 154 MidiSong *song = (MidiSong *) internal->decoder_private;
155 assert(0); 155
156 return(0); 156 Timidity_Start(song);
157 return(1);
157 } /* MIDI_rewind */ 158 } /* MIDI_rewind */
158
159 159
160 #endif /* SOUND_SUPPORTS_MIDI */ 160 #endif /* SOUND_SUPPORTS_MIDI */
161 161
162 162
163 /* end of midi.c ... */ 163 /* end of midi.c ... */