Skip to content
Snippets Groups Projects
Commit 20094c7c authored by Adrien Béraud's avatar Adrien Béraud Committed by Anthony Léonard
Browse files

coreaudio: update to new error-checking macro


Change-Id: I01d69f1bc9786c0b87e5fc193bf341ce3d981d21
Reviewed-by: default avatarAnthony Léonard <anthony.leonard@savoirfairelinux.com>
parent 549985ee
No related branches found
No related tags found
No related merge requests found
......@@ -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,
......
......@@ -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,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment