Skip to main content

Audio.PlaybackMode

Enum

The Playback Mode property of the AudioComponent used in Lenses targeting Spectacles.

  • Snapchat: not supported
  • SPECS: fully supported
  • Camera Kit Web: not supported
  • Camera Kit Mobile: not supported
  • SnapchatNot supported — Available on SPECS only
  • SPECSFully supported
  • Camera Kit WebNot supported — Available on SPECS only
  • Camera Kit MobileNot supported — Available on SPECS only

Platform details

  • Snapchat — Not supported — Available on SPECS only.

  • SPECS — Fully supported.

  • Camera Kit Web — Not supported — Available on SPECS only.

  • Camera Kit Mobile — Not supported — Available on SPECS only.

Since Lens Scripting v272

The Playback Mode property of the AudioComponent used in Lenses targeting Spectacles. Spectacles default all Playback Modes to Low Power.

Index

Enumeration Members

Example

@component
export class NewScript extends BaseScriptComponent {
@input
audio: AudioComponent;
onAwake() {
this.audio.playbackMode = Audio.PlaybackMode.LowLatency;
}
}

Enumeration Members

LowLatency

LowLatency: number

SPECS

Minimizes audio playback latency but increases power usage for the Spectacles device. Recommended for audio requiring immediate auditory reaction, such as button press feedback.

Since

Lens Scripting Version 272


LowPower

LowPower: number

SPECS

Reduces power usage for the Spectacles device. but introduces latency in audio playback. Suitable for ambient sounds or background music where slight delays are acceptable.

Since

Lens Scripting Version 272