Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed set_audio_stream_source_size opcode not working #191

Merged
merged 1 commit into from
Sep 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cleo_plugins/Audio/Audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion cleo_plugins/Audio/CAudioStream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down
2 changes: 1 addition & 1 deletion cleo_plugins/Audio/CAudioStream.h
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down