Update AVMonitor.m
This commit is contained in:
parent
74b6566011
commit
289a6add52
|
@ -774,7 +774,7 @@ extern os_log_t logHandle;
|
|||
propertyStruct.mScope = kAudioObjectPropertyScopeGlobal;
|
||||
|
||||
//init property struct's element
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMaster;
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMain;
|
||||
|
||||
//block
|
||||
// invoked when audio changes
|
||||
|
@ -915,7 +915,7 @@ bail:
|
|||
propertyStruct.mScope = kAudioObjectPropertyScopeGlobal;
|
||||
|
||||
//init property struct's element
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMaster;
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMain;
|
||||
|
||||
//block
|
||||
// invoked when video changes
|
||||
|
@ -1287,7 +1287,7 @@ bail:
|
|||
propertyStruct.mScope = kCMIOObjectPropertyScopeGlobal;
|
||||
|
||||
//init property struct's element
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMaster;
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMain;
|
||||
|
||||
//query to get 'kAudioDevicePropertyDeviceIsRunningSomewhere' status
|
||||
status = CMIOObjectGetPropertyData(deviceID, &propertyStruct, 0, NULL, sizeof(kAudioDevicePropertyDeviceIsRunningSomewhere), &propertySize, &isRunning);
|
||||
|
@ -1745,7 +1745,7 @@ bail:
|
|||
propertyStruct.mScope = kAudioObjectPropertyScopeGlobal;
|
||||
|
||||
//init property struct's element
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMaster;
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMain;
|
||||
|
||||
//remove
|
||||
status = AudioObjectRemovePropertyListenerBlock(deviceID, &propertyStruct, self.eventQueue, self.audioListeners[device.uniqueID]);
|
||||
|
@ -1806,7 +1806,7 @@ bail:
|
|||
propertyStruct.mScope = kAudioObjectPropertyScopeGlobal;
|
||||
|
||||
//init property struct's element
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMaster;
|
||||
propertyStruct.mElement = kAudioObjectPropertyElementMain;
|
||||
|
||||
//remove
|
||||
status = CMIOObjectRemovePropertyListenerBlock(deviceID, &propertyStruct, self.eventQueue, self.cameraListeners[device.uniqueID]);
|
||||
|
|
Loading…
Reference in New Issue