mergAVAudioSessionSetActive

Typecommand
DictionaryLCS
LibraryLiveCode Script
Syntax
mergAVAudioSessionSetActive <pActive>
Associationsmergav
Summary

Activate/deactivate the audio session

Introduced8.0
OSios, mac
Platformsdesktop, mobile
Parameters
NameTypeDescription
pActive
  • true
  • false
Values
NameTypeDescription
return

an error message if setting the category failed

Description

Use mergNotify to handle interruption notifications like AVAudioSessionDidEndInterruptionNotification and AVAudioSessionDidBeginInterruptionNotification. After an interruption reset the category and reactivate your audio session.

Tagsexternals