diff options
| author | Ray <[email protected]> | 2021-12-21 23:57:13 +0100 |
|---|---|---|
| committer | Ray <[email protected]> | 2021-12-21 23:57:13 +0100 |
| commit | 9e5a9892be9d8d193989869a2aa3eb8684073e0a (patch) | |
| tree | d75f1bf03a0499215d4a21fff26ae417aed0da14 /src | |
| parent | 58f2bf4181299c70e30440b5734544114d77e706 (diff) | |
| download | raylib-9e5a9892be9d8d193989869a2aa3eb8684073e0a.tar.gz raylib-9e5a9892be9d8d193989869a2aa3eb8684073e0a.zip | |
REVIEWED: `PlaySoundMulti()` #2231
Diffstat (limited to 'src')
| -rw-r--r-- | src/raudio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/raudio.c b/src/raudio.c index 2fb70d01..b9fade08 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -1039,8 +1039,8 @@ void PlaySoundMulti(Sound sound) AUDIO.MultiChannel.channels[index] = AUDIO.MultiChannel.poolCounter; AUDIO.MultiChannel.poolCounter++; - AUDIO.MultiChannel.pool[index]->volume = sound.stream.buffer->volume; - AUDIO.MultiChannel.pool[index]->pitch = sound.stream.buffer->pitch; + SetAudioBufferVolume(AUDIO.MultiChannel.pool[index], sound.stream.buffer->volume); + SetAudioBufferPitch(AUDIO.MultiChannel.pool[index], sound.stream.buffer->pitch); AUDIO.MultiChannel.pool[index]->looping = sound.stream.buffer->looping; AUDIO.MultiChannel.pool[index]->usage = sound.stream.buffer->usage; AUDIO.MultiChannel.pool[index]->isSubBufferProcessed[0] = false; |
