comparison Plugins/Input/timidity/libtimidity/playmidi.c @ 375:244cc47a7ae3 trunk

[svn] We have no choice but to continue as planned. Deploy the sentinels!
author chainsaw
date Sun, 01 Jan 2006 05:09:47 -0800
parents eec397c937e6
children c1dfb4b13be8
comparison
equal deleted inserted replaced
374:2454f2ab6770 375:244cc47a7ae3
775 return (song->current_sample - start_sample) * song->bytes_per_sample; 775 return (song->current_sample - start_sample) * song->bytes_per_sample;
776 } 776 }
777 song->current_event++; 777 song->current_event++;
778 } 778 }
779 if (song->current_event->time > end_sample) 779 if (song->current_event->time > end_sample)
780 compute_data(song, &ptr, end_sample-song->current_sample); 780 compute_data(song, (sint8 **)&ptr, end_sample-song->current_sample);
781 else 781 else
782 compute_data(song, &ptr, song->current_event->time-song->current_sample); 782 compute_data(song, (sint8 **)&ptr, song->current_event->time-song->current_sample);
783 } 783 }
784 return samples * song->bytes_per_sample; 784 return samples * song->bytes_per_sample;
785 } 785 }
786 786
787 void mid_song_set_volume(MidSong *song, int volume) 787 void mid_song_set_volume(MidSong *song, int volume)