Skip to main content
Version: 12 Dec 2024

NativeBindings

Inherits from:
MagicLeapNativeBindings

Public Methods

bool CreateAudioOutput

public bool CreateAudioOutput()

bool CreateOutputBuffer

public bool CreateOutputBuffer(
uint bufferSizeInBytes,
uint channels,
uint samplesPerSecond,
uint bitsPerSample,
uint validBitsPerSample,
float maxPitch,
uint cacheDuration
)

Parameters

TypeNameDescription
uintbufferSizeInBytes
uintchannels
uintsamplesPerSecond
uintbitsPerSample
uintvalidBitsPerSample
floatmaxPitch
uintcacheDuration

bool DestroyAudioOutput

public bool DestroyAudioOutput()

bool OnUnityAudio

public bool OnUnityAudio(
float [] data,
uint length
)

Parameters

TypeNameDescription
float []data
uintlength