comparison src/timidity/libtimidity/playmidi.c @ 2322:4bb86ffd9ddf

killed another warning
author Cristi Magherusan <majeru@atheme.org>
date Wed, 16 Jan 2008 01:12:24 +0200
parents 6acf1bda788b
children
comparison
equal deleted inserted replaced
2321:6b427677621f 2322:4bb86ffd9ddf
772 return (song->current_sample - start_sample) * song->bytes_per_sample; 772 return (song->current_sample - start_sample) * song->bytes_per_sample;
773 } 773 }
774 song->current_event++; 774 song->current_event++;
775 } 775 }
776 if (song->current_event->time > end_sample) 776 if (song->current_event->time > end_sample)
777 compute_data(song, (sint8 **)&ptr, end_sample-song->current_sample); 777 compute_data(song, (sint8 **)(void*)&ptr, end_sample-song->current_sample);
778 else 778 else
779 compute_data(song, (sint8 **)&ptr, song->current_event->time-song->current_sample); 779 compute_data(song, (sint8 **)(void*)&ptr, song->current_event->time-song->current_sample);
780 } 780 }
781 return samples * song->bytes_per_sample; 781 return samples * song->bytes_per_sample;
782 } 782 }
783 783
784 void mid_song_set_volume(MidSong *song, int volume) 784 void mid_song_set_volume(MidSong *song, int volume)