openframeworks / openFrameworks

openFrameworks is a community-developed cross platform toolkit for creative coding in C++.
http://openframeworks.cc
Other
9.84k stars 2.56k forks source link

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

Open dimitre opened 6 months ago

dimitre commented 6 months ago

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

ofTheo commented 6 months ago

@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