unreal.MagicLeapAudioFunctionLibrary

class unreal.MagicLeapAudioFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Magic Leap Audio Function Library

C++ Source:

  • Plugin: MagicLeap

  • Module: MagicLeapAudio

  • File: MagicLeapAudioFunctionLibrary.h

classmethod is_mic_muted()bool

Returns whether all microphone capture is muted or not.

Returns

Return type

bool

classmethod set_mic_mute(is_muted)bool

Mute or unmute all microphone capture. Note: When mic capture is muted or unmuted by one app, it is muted or unmuted for all apps. Note: this setting is separate from any muting done by the audio policy manager (such as when the “reality button” is pressed).

Parameters

is_muted (bool) – Boolean value indicating whether or not to mute

Returns

Return type

bool

classmethod set_on_audio_jack_plugged_delegate(result_delegate)bool

Sets the delegate used to notify that an audio device has been plugged into the audio jack.

Parameters

result_delegate (MagicLeapAudioJackPluggedDelegate) – The delegate that will be notified when an audio device has been plugged into the audio jack.

Returns

Return type

bool

classmethod set_on_audio_jack_unplugged_delegate(result_delegate)bool

Sets the delegate used to notify that an audio device has been unplugged from the audio jack.

Parameters

result_delegate (MagicLeapAudioJackUnpluggedDelegate) – The delegate that will be notified when an audio device has been unplugged from the audio jack.

Returns

Return type

bool