Fix bug with dynamic playrate changing

This commit is contained in:
rdb 2009-04-12 10:33:41 +00:00
parent 213976bd97
commit 788631d454

View File

@ -630,6 +630,9 @@ get_balance() const {
void OpenALAudioSound::
set_play_rate(float play_rate) {
_play_rate = play_rate;
if (_source) {
alSourcef(_source, AL_PITCH, play_rate);
}
}
////////////////////////////////////////////////////////////////////