coreaudio: update to new error-checking macro

Change-Id: I01d69f1bc9786c0b87e5fc193bf341ce3d981d21
Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
This commit is contained in:
Adrien Béraud
2017-09-27 10:24:05 +02:00
committed by Anthony Léonard
parent 549985eefe
commit 20094c7c07
2 changed files with 8 additions and 8 deletions

View File

@ -48,7 +48,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
theScope,
0 }; // channel
verify_noerr(AudioObjectGetPropertyData(id_,
__Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress,
0,
NULL,
@ -59,7 +59,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
propsize = sizeof(UInt32);
theAddress.mSelector = kAudioDevicePropertyBufferFrameSize;
verify_noerr(AudioObjectGetPropertyData(id_,
__Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress,
0,
NULL,
@ -69,7 +69,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
propsize = sizeof(AudioStreamBasicDescription);
theAddress.mSelector = kAudioDevicePropertyStreamFormat;
verify_noerr(AudioObjectGetPropertyData(id_,
__Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress,
0,
NULL,
@ -95,14 +95,14 @@ void AudioDevice::setBufferSize(UInt32 size)
theScope,
0 }; // channel
verify_noerr(AudioObjectSetPropertyData(id_,
__Verify_noErr(AudioObjectSetPropertyData(id_,
&theAddress,
0,
NULL,
propsize,
&size));
verify_noerr(AudioObjectGetPropertyData(id_,
__Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress,
0,
NULL,
@ -160,7 +160,7 @@ std::string AudioDevice::getName() const
theScope,
0 }; // channel
verify_noerr(AudioObjectGetPropertyData(id_,
__Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress,
0,
NULL,

View File

@ -415,7 +415,7 @@ CoreLayer::getDeviceList(bool getCapture) const
kAudioObjectPropertyElementMaster
};
verify_noerr(AudioObjectGetPropertyDataSize(kAudioObjectSystemObject,
__Verify_noErr(AudioObjectGetPropertyDataSize(kAudioObjectSystemObject,
&theAddress,
0,
nullptr,
@ -424,7 +424,7 @@ CoreLayer::getDeviceList(bool getCapture) const
std::size_t nDevices = propsize / sizeof(AudioDeviceID);
auto devids = std::vector<AudioDeviceID>(nDevices);
verify_noerr(AudioObjectGetPropertyData(kAudioObjectSystemObject,
__Verify_noErr(AudioObjectGetPropertyData(kAudioObjectSystemObject,
&theAddress,
0,
nullptr,