From fb1e6be46d98f5cca04b283772ec925df3361800 Mon Sep 17 00:00:00 2001 From: Miran Date: Fri, 13 Sep 2024 07:50:45 +0200 Subject: [PATCH] Fixed set_audio_stream_source_size opcode not working --- cleo_plugins/Audio/Audio.cpp | 2 +- cleo_plugins/Audio/CAudioStream.cpp | 2 +- cleo_plugins/Audio/CAudioStream.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cleo_plugins/Audio/Audio.cpp b/cleo_plugins/Audio/Audio.cpp index d7c62d3c..192c66d6 100644 --- a/cleo_plugins/Audio/Audio.cpp +++ b/cleo_plugins/Audio/Audio.cpp @@ -386,7 +386,7 @@ class Audio auto stream = (CAudioStream*)OPCODE_READ_PARAM_UINT(); VALIDATE_STREAM(); auto radius = OPCODE_READ_PARAM_FLOAT(); - if (stream) stream->Set3dSize(radius); + if (stream) stream->Set3dSourceSize(radius); return OR_CONTINUE; } diff --git a/cleo_plugins/Audio/CAudioStream.cpp b/cleo_plugins/Audio/CAudioStream.cpp index 9be1eea5..03dae03b 100644 --- a/cleo_plugins/Audio/CAudioStream.cpp +++ b/cleo_plugins/Audio/CAudioStream.cpp @@ -239,7 +239,7 @@ void CAudioStream::Set3dPosition(const CVector& pos) // not applicable for 2d audio } -void CAudioStream::Set3dSize(float radius) +void CAudioStream::Set3dSourceSize(float radius) { // not applicable for 2d audio } diff --git a/cleo_plugins/Audio/CAudioStream.h b/cleo_plugins/Audio/CAudioStream.h index b68a3a95..fdfa2b60 100644 --- a/cleo_plugins/Audio/CAudioStream.h +++ b/cleo_plugins/Audio/CAudioStream.h @@ -47,7 +47,7 @@ namespace CLEO // 3d virtual void Set3dPosition(const CVector& pos); - virtual void Set3dSize(float radius); + virtual void Set3dSourceSize(float radius); virtual void Link(CPlaceable* placable = nullptr); virtual void Process();