comparison decoders/timidity/playmidi.c @ 312:498240aa76f1

Seek implementations.
author Ryan C. Gordon <icculus@icculus.org>
date Wed, 24 Apr 2002 20:47:21 +0000
parents 2d887640d300
children cbc2a4ffeeec
comparison
equal deleted inserted replaced
311:d62c05322a3e 312:498240aa76f1
654 song->playing = 1; 654 song->playing = 1;
655 adjust_amplification(song); 655 adjust_amplification(song);
656 skip_to(song, 0); 656 skip_to(song, 0);
657 } 657 }
658 658
659 void Timidity_Seek(MidiSong *song, Uint32 ms)
660 {
661 skip_to(song, (ms * song->rate) / 1000);
662 }
663
659 int Timidity_PlaySome(MidiSong *song, void *stream, Sint32 len) 664 int Timidity_PlaySome(MidiSong *song, void *stream, Sint32 len)
660 { 665 {
661 Sint32 start_sample, end_sample, samples; 666 Sint32 start_sample, end_sample, samples;
662 int bytes_per_sample; 667 int bytes_per_sample;
663 668