mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-02-03 10:13:11 +00:00
This AVFoundation code needs to work for both iOS and OSX
This commit is contained in:
parent
0703aed61d
commit
c68e824eb9
@ -124,7 +124,9 @@ void cocoagl_bind_game_view_fbo(void)
|
||||
{
|
||||
#ifdef HAVE_AVFOUNDATION
|
||||
/* Implicitly initializes your audio session */
|
||||
[[RetroArch_iOS get] supportOtherAudioSessions];
|
||||
AVAudioSession *audio_session = [AVAudioSession sharedInstance];
|
||||
[audio_session setCategory:AVAudioSessionCategoryAmbient error:nil];
|
||||
[audio_session setActive:YES error:nil];
|
||||
#endif
|
||||
if (g_context)
|
||||
[g_view bindDrawable];
|
||||
|
Loading…
x
Reference in New Issue
Block a user