ObjectAudioComponent
The default constructor for ObjectAudioComponent with no parameters.
Creates a new ObjectAudioComponent with the specified parameters.
All parameters must be valid; otherwise an IllegalArgumentException is thrown.
Parameters
The volume of the audio. Valid range [0.0, 1.0]. Default 1.0f.
The directivity of the audio. Valid range ([0.0, 1.0],[0.0, ∞]).
The distance attenuation mode for audio. Default DistanceAttenuationMode.INVERSE_SQUARED.
The reverb volume level. Valid range [0.0, 1.0]. Default 1.0f. Effective only when VST (Video SeeThrough) is enabled.
The sound radius level of the audio. The valid value range is [0.0, ∞]. The default value is 0.1f. This parameter controls the effective radius of the sound source for spatial audio calculations.
Throws
if any parameter is outside its valid range.