Skip to content

Commit 3128639

Browse files
committed
MiniAudio: Use sliders for the volume controls in the editor
Signed-off-by: Eric Kuzmenko <[email protected]>
1 parent bcb096d commit 3128639

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Gems/MiniAudio/Code/Source/Tools/EditorMiniAudioListenerComponent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ namespace MiniAudio
5555

5656
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioListenerComponentConfig::m_followEntity, "Follow Entity", "The listener will follow the position and orientation of the specified entity.")
5757
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioListenerComponentConfig::m_listenerIndex, "Listener Index", "MiniAudio listener index to control.")
58-
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioListenerComponentConfig::m_globalVolume, "Global Volume", "Sets the global volume of the audio engine, as a percentage.")
58+
->DataElement(AZ::Edit::UIHandlers::Slider, &MiniAudioListenerComponentConfig::m_globalVolume, "Global Volume", "Sets the global volume of the audio engine, as a percentage.")
5959
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
6060
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
6161
->Attribute(AZ::Edit::Attributes::Max, 100.0f)
@@ -70,7 +70,7 @@ namespace MiniAudio
7070
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
7171
->Attribute(AZ::Edit::Attributes::Max, 360.0f)
7272
->Attribute(AZ::Edit::Attributes::Suffix, " degrees")
73-
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioListenerComponentConfig::m_outerVolume, "Outer Volume", "Sets the volume of the listener outside of the outer cone, as a percentage.")
73+
->DataElement(AZ::Edit::UIHandlers::Slider, &MiniAudioListenerComponentConfig::m_outerVolume, "Outer Volume", "Sets the volume of the listener outside of the outer cone, as a percentage.")
7474
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
7575
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
7676
->Attribute(AZ::Edit::Attributes::Max, 100.0f)

Gems/MiniAudio/Code/Source/Tools/EditorMiniAudioPlaybackComponent.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ namespace MiniAudio
7070

7171
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioPlaybackComponentConfig::m_autoplayOnActivate, "Autoplay", "Plays the sound on activation of the component.")
7272
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioPlaybackComponentConfig::m_loop, "Loop", "Loops the sound.")
73-
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioPlaybackComponentConfig::m_volume, "Volume", "The volume of the sound when played, as a percentage.")
73+
->DataElement(AZ::Edit::UIHandlers::Slider, &MiniAudioPlaybackComponentConfig::m_volume, "Volume", "The volume of the sound when played, as a percentage.")
7474
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
7575
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
7676
->Attribute(AZ::Edit::Attributes::Max, 100.0f)
@@ -102,7 +102,7 @@ namespace MiniAudio
102102
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
103103
->Attribute(AZ::Edit::Attributes::Max, 360.0f)
104104
->Attribute(AZ::Edit::Attributes::Suffix, " degrees")
105-
->DataElement(AZ::Edit::UIHandlers::Default, &MiniAudioPlaybackComponentConfig::m_outerVolume, "Outer Volume", "Sets the volume of the sound source outside of the outer cone, as a percentage.")
105+
->DataElement(AZ::Edit::UIHandlers::Slider, &MiniAudioPlaybackComponentConfig::m_outerVolume, "Outer Volume", "Sets the volume of the sound source outside of the outer cone, as a percentage.")
106106
->Attribute(AZ::Edit::Attributes::Min, 0.0f)
107107
->Attribute(AZ::Edit::Attributes::Step, 1.0f)
108108
->Attribute(AZ::Edit::Attributes::Max, 100.0f)

0 commit comments

Comments
 (0)