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

Limit Cone Outer Gain to the 0-1 range. #169

Merged
merged 1 commit into from
Dec 2, 2022
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
3 changes: 2 additions & 1 deletion addons/io_hubs_addon/components/definitions/audio_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@ class AudioParams(HubsComponent):
name="Cone Outer Gain",
description="A double value describing the amount of volume reduction outside the cone defined by the coneOuterAngle attribute",
default=0.0,
min=0.0)
min=0.0,
max=1.0)

def gather(self, export_settings, object):
if (self.overrideAudioSettings):
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,8 @@ class AudioSettings(HubsComponent):
name="Media Cone Outer Gain",
description="Media Cone Outer Gain",
default=0.0,
min=0.0)
min=0.0,
max=1.0)

def gather(self, export_settings, object):
return {
Expand Down