mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
Fix bug with dynamic playrate changing
This commit is contained in:
parent
213976bd97
commit
788631d454
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////
|
||||
|
Loading…
x
Reference in New Issue
Block a user