mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +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
|
#ifdef HAVE_AVFOUNDATION
|
||||||
/* Implicitly initializes your audio session */
|
/* 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
|
#endif
|
||||||
if (g_context)
|
if (g_context)
|
||||||
[g_view bindDrawable];
|
[g_view bindDrawable];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user