Skip to content

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.

The props the runtime declares for this component, with their defaults and accepted ranges.

Prop Default Range
order integer
volume 0 ≤ x ≤ 1

Sent to the entity’s Signal Emitter as { entityId, eventType, data }. Compare eventType with the EventType constants.

  • AudioAmbisonic::ready
  • AudioAmbisonic::error
  • AudioAmbisonic::play
  • AudioAmbisonic::pause
  • AudioAmbisonic::stop
  • AudioAmbisonic::end
#pragma lifecycle(startup)
function startup() {
const component = self.parent.getComponent(AudioAmbisonicComponent);
if (component) log(component.props);
}