MLAudioPlayback
NameSpace: MagicLeap
Protected Fields
Instance
protected static MLAudioPlayback Instance { get; set; }
Public Methods
void CreateAudioBuffer
Creates the audio buffer with the default cache size.
public static void CreateAudioBuffer()
void CreateAudioBuffer
Creates the audio buffer with the specified cache size.
public static void CreateAudioBuffer(
uint cacheDurationInSeconds
)
Parameters
Type | Name | Description |
---|---|---|
uint | cacheDurationInSeconds |
void DestroyAudioBuffer
public static void DestroyAudioBuffer()
void SubmitBuffer
Submit unity audio buffers to the playback plugin so that it gets submitted to MLAudio apis.
public static void SubmitBuffer(
float [] data,
int channels
)
Parameters
Type | Name | Description |
---|---|---|
float [] | data | Audio buffer |
int | channels | Number of channels in the buffer |