Commit dc8c93ff authored by David Reid's avatar David Reid

iOS: Output sound to speakers instead of receiver by default.

parent 58b49fdb
...@@ -15678,6 +15678,13 @@ mal_result mal_context_init__coreaudio(mal_context* pContext) ...@@ -15678,6 +15678,13 @@ mal_result mal_context_init__coreaudio(mal_context* pContext)
mal_assert(pAudioSession != NULL); mal_assert(pAudioSession != NULL);
[pAudioSession setCategory: AVAudioSessionCategoryPlayAndRecord error:nil]; [pAudioSession setCategory: AVAudioSessionCategoryPlayAndRecord error:nil];
// By default we want mini_al to use the speakers instead of the receiver. In the future this may
// be customizable.
mal_bool32 useSpeakers = MAL_TRUE;
if (useSpeakers) {
[pAudioSession overrideOutputAudioPort:AVAudioSessionPortOverrideSpeaker error:nil];
}
} }
#endif #endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment