openframeworks/openFrameworks

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

dimitre opened this issue · 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 - 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