Changeset 58919 in vbox for trunk/src/VBox/Devices/Audio
- Timestamp:
- Nov 30, 2015 10:24:22 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Audio/DrvHostCoreAudio.cpp
r58378 r58919 1726 1726 #ifdef DEBUG 1727 1727 err = AudioObjectRemovePropertyListener(pStreamIn->deviceID, &propAdr, 1728 drvHostCoreAudioRecordingAudioDevicePropertyChanged, NULL);1728 drvHostCoreAudioRecordingAudioDevicePropertyChanged, pStreamIn); 1729 1729 /* Not Fatal */ 1730 1730 if (RT_UNLIKELY(err != noErr)) … … 1734 1734 propAdr.mSelector = kAudioDevicePropertyNominalSampleRate; 1735 1735 err = AudioObjectRemovePropertyListener(pStreamIn->deviceID, &propAdr, 1736 drvHostCoreAudioRecordingAudioDevicePropertyChanged, NULL);1736 drvHostCoreAudioRecordingAudioDevicePropertyChanged, pStreamIn); 1737 1737 /* Not Fatal */ 1738 1738 if (RT_UNLIKELY(err != noErr)) … … 1742 1742 { 1743 1743 propAdr.mSelector = kAudioHardwarePropertyDefaultInputDevice; 1744 err = AudioObjectRemovePropertyListener( pStreamIn->deviceID, &propAdr,1745 drvHostCoreAudioDefaultDeviceChanged, NULL);1744 err = AudioObjectRemovePropertyListener(kAudioObjectSystemObject, &propAdr, 1745 drvHostCoreAudioDefaultDeviceChanged, pStreamIn); 1746 1746 if (RT_LIKELY(err == noErr)) 1747 1747 { … … 1818 1818 1819 1819 OSStatus err; 1820 1821 /* 1822 * Unregister playback device callbacks. 1823 */ 1824 AudioObjectPropertyAddress propAdr = { kAudioDeviceProcessorOverload, kAudioObjectPropertyScopeGlobal, 1825 kAudioObjectPropertyElementMaster }; 1826 #ifdef DEBUG 1827 err = AudioObjectRemovePropertyListener(pStreamOut->deviceID, &propAdr, 1828 drvHostCoreAudioPlaybackAudioDevicePropertyChanged, pStreamOut); 1829 /* Not Fatal */ 1830 if (RT_UNLIKELY(err != noErr)) 1831 LogRel(("CoreAudio: Failed to remove the processor overload listener (%RI32)\n", err)); 1832 #endif /* DEBUG */ 1833 1834 propAdr.mSelector = kAudioDevicePropertyNominalSampleRate; 1835 err = AudioObjectRemovePropertyListener(pStreamOut->deviceID, &propAdr, 1836 drvHostCoreAudioPlaybackAudioDevicePropertyChanged, pStreamOut); 1837 /* Not Fatal */ 1838 if (RT_UNLIKELY(err != noErr)) 1839 LogRel(("CoreAudio: Failed to remove the sample rate changed listener (%RI32)\n", err)); 1840 1820 1841 if (pStreamOut->fDefDevChgListReg) 1821 1842 { 1822 AudioObjectPropertyAddress propAdr = { kAudioHardwarePropertyDefaultOutputDevice, kAudioObjectPropertyScopeGlobal, 1823 kAudioObjectPropertyElementMaster }; 1824 err = AudioObjectRemovePropertyListener(pStreamOut->deviceID, &propAdr, 1825 drvHostCoreAudioDefaultDeviceChanged, NULL); 1843 propAdr.mSelector = kAudioHardwarePropertyDefaultOutputDevice; 1844 propAdr.mScope = kAudioObjectPropertyScopeGlobal; 1845 propAdr.mElement = kAudioObjectPropertyElementMaster; 1846 err = AudioObjectRemovePropertyListener(kAudioObjectSystemObject, &propAdr, 1847 drvHostCoreAudioDefaultDeviceChanged, pStreamOut); 1826 1848 if (RT_LIKELY(err == noErr)) 1827 1849 {
Note:
See TracChangeset
for help on using the changeset viewer.