superpoweredSDK / Low-Latency-Android-iOS-Linux-Windows-tvOS-macOS-Interactive-Audio-Platform

🇸Superpowered Audio, Networking and Cryptographics SDKs. High performance and cross platform on Android, iOS, macOS, tvOS, Linux, Windows and modern web browsers.
https://superpowered.com
1.33k stars 285 forks source link

AdvancedAudioPlayer fails to open files on MacCatalyst #782

Open germisi opened 3 months ago

germisi commented 3 months ago

Superpowered version: Commit ref: dfd80631

Describe the bug Opening files with AdvancedAudioPlayer fails on MacCatalyst. No events are returned, not even a PlayerEvent_OpenFailed. One message I was able to catch from console: AQMEIO_HAL.cpp:874 kAudioDevicePropertyMute returned err 2003332927 Once I reverted the changes of the OpenSource/SuperpoweredIOSAudioIO.mm file the player was working again.

Steps to Reproduce I was creating a basic app with AdvancedAudioPlayer targeted for MacCatalyst.

Expected behavior AdvancedAudioPlayer emits an event after the open command either a PlayerEvent_Opened or a PlayerEvent_OpenFailed.

Actual behavior AdvancedAudioPlayer crashes silently and the player does not work.

Device information Please list which devices have this bug.

Log messages Indicating crash: AQMEIO_HAL.cpp:874 kAudioDevicePropertyMute returned err 2003332927