mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1045018
- Make webrtc.org code use mozilla_set_coreaudio_notification_runloop. r=gcp
This commit is contained in:
parent
63a1c179c9
commit
3781947225
@ -23,6 +23,9 @@
|
||||
#include <mach/mach.h> // mach_task_self()
|
||||
#include <sys/sysctl.h> // sysctlbyname()
|
||||
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
#include <OSXRunLoopSingleton.h>
|
||||
#endif
|
||||
|
||||
|
||||
namespace webrtc
|
||||
@ -384,10 +387,14 @@ int32_t AudioDeviceMac::Init()
|
||||
kAudioHardwarePropertyRunLoop,
|
||||
kAudioObjectPropertyScopeGlobal,
|
||||
kAudioObjectPropertyElementMaster };
|
||||
#ifdef MOZILLA_INTERNAL_API
|
||||
mozilla_set_coreaudio_notification_runloop_if_needed();
|
||||
#else
|
||||
CFRunLoopRef runLoop = NULL;
|
||||
UInt32 size = sizeof(CFRunLoopRef);
|
||||
WEBRTC_CA_RETURN_ON_ERR(AudioObjectSetPropertyData(kAudioObjectSystemObject,
|
||||
&propertyAddress, 0, NULL, size, &runLoop));
|
||||
#endif
|
||||
|
||||
// Listen for any device changes.
|
||||
propertyAddress.mSelector = kAudioHardwarePropertyDevices;
|
||||
|
Loading…
Reference in New Issue
Block a user