Component:AvatarAudioOutputManager: Difference between revisions

From Resonite Wiki
imported>Chemicalcrux
Creating the page (with a bot!)
 
add link to overriding component
 
(3 intermediate revisions by 3 users not shown)
Line 7: Line 7:
|Name=AvatarAudioOutputManager
|Name=AvatarAudioOutputManager
}}
}}
 
Avatar Audio Output Manager is the component that handles changing the audio output values when a user changes their voice mode or mutes.
<!--T:2-->
== Intoduction ==


<!--T:3-->
<!--T:3-->
== Usage ==
== Usage ==
{{Table ComponentFields
{{Table ComponentFields
|AudioOutput|AudioOutput|  
|AudioOutput|'''[[Component:AudioOutput|AudioOutput]]'''|TypeAdv0=true| The audio output this component is controlling and targeting that has the <code>_activeUser</code>'s voice.
|Volume|Float|  
|IsViewVoice|Bool| Whether or not this component is the voice of the <code>_activeUser</code>'s head or the <code>_activeUser</code>'s free cam.
|MinDistance|Float|  
|WhisperConfig|{{RootFieldType|VoiceModeConfig}}|TypeAdv2=true| What <code>AudioOutput</code> should be set to when <code>_activeUser</code> is in Whisper voice mode.
|MaxDistance|Float|  
|NormalConfig|{{RootFieldType|VoiceModeConfig}}|TypeAdv3=true| What <code>AudioOutput</code> should be set to when <code>_activeUser</code> is in Normal voice mode.
|RollOffMode|AudioRolloffMode|  
|ShoutConfig|{{RootFieldType|VoiceModeConfig}}|TypeAdv4=true| What <code>AudioOutput</code> should be set to when <code>_activeUser</code> is in Shout voice mode.
|DistanceSpace|AudioDistanceSpace|  
|BroadcastConfig|{{RootFieldType|VoiceModeConfig}}|TypeAdv5=true| What <code>AudioOutput</code> should be set to when the user is in Broadcast mode.
|MinScale|Float|  
|__legacyWhisperVolume|Float| Internal.
|MaxScale|Float|  
|__legacyNormalVolume|Float| Internal.
|Spatialize|Bool|  
|__legacyShoutVolume|Float| Internal.
|SpatialBlend|Float|  
|__legacyBroadcastVolume|Float| Internal.
|Doppler|Float|  
|__legacyNormalDopplerLevel|Float| Internal.
|Volume|Float|  
|__legacyShoutDopplerLevel|Float| Internal.
|MinDistance|Float|  
|__legacyWhisperRange|Float| Internal.
|MaxDistance|Float|  
|_activeUser|User| The user that this component is supposed to be managing an [[Component:AudioOutput|Audio Output Component]] for.
|RollOffMode|AudioRolloffMode|  
|_enabled|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv14=true| The enabled field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|DistanceSpace|AudioDistanceSpace|
|_volume|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv15=true| The volume field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|MinScale|Float|  
|_doppler|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv16=true| The doppler field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|MaxScale|Float|  
|_spatialize|{{RootFieldType|FieldDrive`1|[[Type:Bool|Bool]]}}|TypeAdv17=true| The spatialize field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|Spatialize|Bool|
|_spatialBlend|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv18=true| The spatialBlend field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|SpatialBlend|Float|  
|_minDistance|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv19=true| The minDistance field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|Doppler|Float|  
|_maxDistance|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv20=true| The maxDistance field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|Volume|Float|  
|_rollOffMode|{{RootFieldType|FieldDrive`1|[[Type:AudioRolloffMode|AudioRolloffMode]]}}|TypeAdv21=true| The rollOffMode field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|MinDistance|Float|  
|_distanceSpace|{{RootFieldType|FieldDrive`1|[[Type:AudioDistanceSpace|AudioDistanceSpace]]}}|TypeAdv22=true| The distance space field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|MaxDistance|Float|  
|_minScale|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv23=true| The minScale field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|RollOffMode|AudioRolloffMode|  
|_maxScale|{{RootFieldType|FieldDrive`1|[[Type:Float|Float]]}}|TypeAdv24=true| The maxScale field of the [[Component:AudioOutput|Audio Output Component]] controlled by this component.
|DistanceSpace|AudioDistanceSpace|  
|_scaleCompensation|Float| How much to scale up the volume range of the user so a small <code>_activeUser</code> can still be heard by everyone else.
|MinScale|Float|  
|_audioConfiguration|'''[[Component:AvatarAudioConfiguration|AvatarAudioConfiguration]]'''|TypeAdv26=true| A field automatically filled with an Avatar Audio Configuration when the user spawns with an injected Avatar Audio Configuration courtesy of the world they spawned in. When not null, the specified component overrides <code>WhisperConfig</code>, <code>NormalConfig</code>, <code>ShoutConfig</code>, and <code>BroadcastConfig</code> voice settings.
|MaxScale|Float|  
|Spatialize|Bool|  
|SpatialBlend|Float|
|Doppler|Float|  
|Volume|Float|  
|MinDistance|Float|  
|MaxDistance|Float|  
|RollOffMode|AudioRolloffMode|  
|DistanceSpace|AudioDistanceSpace|  
|MinScale|Float|
|MaxScale|Float|  
|Spatialize|Bool|  
|SpatialBlend|Float|  
|Doppler|Float|
|__legacyWhisperVolume|Float|  
|__legacyNormalVolume|Float|  
|__legacyShoutVolume|Float|  
|__legacyBroadcastVolume|Float|
|__legacyNormalDopplerLevel|Float|  
|__legacyShoutDopplerLevel|Float|  
|__legacyWhisperRange|Float|  
|_activeUser|User|  
|_enabled|Bool|  
|_volume|Float|  
|_doppler|Float|  
|_spatialize|Bool|  
|_spatialBlend|Float|  
|_minDistance|Float|
|_maxDistance|Float|  
|_rollOffMode|AudioRolloffMode|  
|_distanceSpace|AudioDistanceSpace|  
|_minScale|Float|  
|_maxScale|Float|  
|_scaleCompensation|Float|  
|_audioConfiguration|AvatarAudioConfiguration|  
}}
}}


Line 86: Line 49:
<!--T:6-->
<!--T:6-->
== Related Components ==
== Related Components ==
* For how to override the user's voice settings in a world, see the [[Component:AvatarAudioConfiguration|Avatar Audio Configuration Component]].
</translate>
</translate>
[[Category:Components{{#translation:}}|AvatarAudioOutputManager (Component){{#translation:}}]]
[[Category:Components{{#translation:}}|Avatar Audio Output Manager]]
[[Category:ComponentStubs]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|Avatar Audio Output Manager]]
[[Category:Components:Users:Common Avatar System:Audio{{#translation:}}|AvatarAudioOutputManager (Component){{#translation:}}]]

Latest revision as of 18:42, 29 October 2024


This article or section is a Stub. You can help the Resonite Wiki by expanding it.


Component image 
AvatarAudioOutputManager component as seen in the Scene Inspector

Avatar Audio Output Manager is the component that handles changing the audio output values when a user changes their voice mode or mutes.

Usage

Fields
Name Type Description
persistent Bool Determines whether or not this item will be saved to the server.
UpdateOrder Int Controls the order in which this component is updated.
Enabled Bool Controls whether or not this component is enabled.
AudioOutput AudioOutput The audio output this component is controlling and targeting that has the _activeUser's voice.
IsViewVoice Bool Whether or not this component is the voice of the _activeUser's head or the _activeUser's free cam.
WhisperConfig direct VoiceModeConfig What AudioOutput should be set to when _activeUser is in Whisper voice mode.
NormalConfig direct VoiceModeConfig What AudioOutput should be set to when _activeUser is in Normal voice mode.
ShoutConfig direct VoiceModeConfig What AudioOutput should be set to when _activeUser is in Shout voice mode.
BroadcastConfig direct VoiceModeConfig What AudioOutput should be set to when the user is in Broadcast mode.
__legacyWhisperVolume Float Internal.
__legacyNormalVolume Float Internal.
__legacyShoutVolume Float Internal.
__legacyBroadcastVolume Float Internal.
__legacyNormalDopplerLevel Float Internal.
__legacyShoutDopplerLevel Float Internal.
__legacyWhisperRange Float Internal.
_activeUser User The user that this component is supposed to be managing an Audio Output Component for.
_enabled field drive of Bool The enabled field of the Audio Output Component controlled by this component.
_volume field drive of Float The volume field of the Audio Output Component controlled by this component.
_doppler field drive of Float The doppler field of the Audio Output Component controlled by this component.
_spatialize field drive of Bool The spatialize field of the Audio Output Component controlled by this component.
_spatialBlend field drive of Float The spatialBlend field of the Audio Output Component controlled by this component.
_minDistance field drive of Float The minDistance field of the Audio Output Component controlled by this component.
_maxDistance field drive of Float The maxDistance field of the Audio Output Component controlled by this component.
_rollOffMode field drive of AudioRolloffMode The rollOffMode field of the Audio Output Component controlled by this component.
_distanceSpace field drive of AudioDistanceSpace The distance space field of the Audio Output Component controlled by this component.
_minScale field drive of Float The minScale field of the Audio Output Component controlled by this component.
_maxScale field drive of Float The maxScale field of the Audio Output Component controlled by this component.
_scaleCompensation Float How much to scale up the volume range of the user so a small _activeUser can still be heard by everyone else.
_audioConfiguration AvatarAudioConfiguration A field automatically filled with an Avatar Audio Configuration when the user spawns with an injected Avatar Audio Configuration courtesy of the world they spawned in. When not null, the specified component overrides WhisperConfig, NormalConfig, ShoutConfig, and BroadcastConfig voice settings.

Behavior

Examples

Related Components