From 09e4a137572be1ff1204b9b2ac89bd329f7e44c5 Mon Sep 17 00:00:00 2001 From: Rob Loach Date: Mon, 12 Feb 2024 00:51:24 -0500 Subject: [PATCH] Fix AudioStream calls --- include/AudioStream.hpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/AudioStream.hpp b/include/AudioStream.hpp index 8edde003..dc44714b 100644 --- a/include/AudioStream.hpp +++ b/include/AudioStream.hpp @@ -159,7 +159,7 @@ class AudioStream : public ::AudioStream { * Set pan for audio stream (0.5 is centered) */ AudioStream& SetPan(float pan = 0.5f) { - ::SetAudioStreamPitch(*this, pan); + ::SetAudioStreamPan(*this, pan); return *this; } @@ -181,14 +181,14 @@ class AudioStream : public ::AudioStream { * Attach audio stream processor to stream */ void AttachProcessor(::AudioCallback processor) { - ::SetAudioStreamCallback(*this, processor); + ::AttachAudioStreamProcessor(*this, processor); } /** * Detach audio stream processor from stream */ void DetachProcessor(::AudioCallback processor) { - ::SetAudioStreamCallback(*this, processor); + ::DetachAudioStreamProcessor(*this, processor); } /**