diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/raudio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/raudio.c b/src/raudio.c index 8859547e..0e378c80 100644 --- a/src/raudio.c +++ b/src/raudio.c @@ -632,7 +632,7 @@ void SetAudioBufferVolume(AudioBuffer *buffer, float volume) // Set pitch for an audio buffer void SetAudioBufferPitch(AudioBuffer *buffer, float pitch) { - if (buffer != NULL) + if ((buffer != NULL) && (pitch > 0.0f)) { // Pitching is just an adjustment of the sample rate. // Note that this changes the duration of the sound: |
