openFrameworks icon indicating copy to clipboard operation
openFrameworks copied to clipboard

ofAVEngineSoundPlayer - 'AVAudioSessionInterruptionTypeKey' is unavailable: not available on macOS

Open dimitre opened this issue 2 years ago • 1 comments

I'm building an app without fmod on macOS by using

OF_NO_FMOD=1
USER_PREPROCESSOR_DEFINITIONS="OF_NO_FMOD=1"

on App.xcconfig, so it is automatically kicking in with ofAVEngineSoundPlayer but it is bringing this error: 'AVAudioSessionInterruptionTypeKey' is unavailable: not available on macOS

dimitre avatar Jan 12 '24 14:01 dimitre

@dimitre - I'll let @danoli3 chime in but I am guessing that is an iOS only thing.

I am guessing those code sections need to be included in the #ifndef TARGET_OSX

We should prob start switching tests to use OF_NO_FMOD so we can catch these things

ofTheo avatar Jan 12 '24 16:01 ofTheo

This was defined out for macOS.

Screenshot 2024-07-29 at 3 36 43 AM

danoli3 avatar Jul 28 '24 17:07 danoli3