Audio Ambisonic
Updated
Plays a 360 soundfield as binaural audio.
- Type
comp-audio-ambisonic- Script class
AudioAmbisonicComponent- Per entity
- One
- Version
- 1.1.0
Read about it in Audio sources: what it does, how to use it from a script, and examples.
Properties
Section titled “Properties”The props the runtime declares for this component, with their defaults and accepted ranges.
| Prop | Default | Range |
|---|---|---|
order |
integer | |
volume |
0 ≤ x ≤ 1 |
Events
Section titled “Events”Sent to the entity’s Signal Emitter as { entityId, eventType, data }. Compare eventType with the EventType constants.
AudioAmbisonic::readyAudioAmbisonic::errorAudioAmbisonic::playAudioAmbisonic::pauseAudioAmbisonic::stopAudioAmbisonic::end
From a script
Section titled “From a script”#pragma lifecycle(startup)
function startup() { const component = self.parent.getComponent(AudioAmbisonicComponent); if (component) log(component.props);}