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) ...@@ -48,7 +48,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
theScope, theScope,
0 }; // channel 0 }; // channel
verify_noerr(AudioObjectGetPropertyData(id_, __Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
...@@ -59,7 +59,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput) ...@@ -59,7 +59,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
propsize = sizeof(UInt32); propsize = sizeof(UInt32);
theAddress.mSelector = kAudioDevicePropertyBufferFrameSize; theAddress.mSelector = kAudioDevicePropertyBufferFrameSize;
verify_noerr(AudioObjectGetPropertyData(id_, __Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
...@@ -69,7 +69,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput) ...@@ -69,7 +69,7 @@ void AudioDevice::init(AudioDeviceID devid, bool isInput)
propsize = sizeof(AudioStreamBasicDescription); propsize = sizeof(AudioStreamBasicDescription);
theAddress.mSelector = kAudioDevicePropertyStreamFormat; theAddress.mSelector = kAudioDevicePropertyStreamFormat;
verify_noerr(AudioObjectGetPropertyData(id_, __Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
...@@ -95,14 +95,14 @@ void AudioDevice::setBufferSize(UInt32 size) ...@@ -95,14 +95,14 @@ void AudioDevice::setBufferSize(UInt32 size)
theScope, theScope,
0 }; // channel 0 }; // channel
verify_noerr(AudioObjectSetPropertyData(id_, __Verify_noErr(AudioObjectSetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
propsize, propsize,
&size)); &size));
verify_noerr(AudioObjectGetPropertyData(id_, __Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
...@@ -160,7 +160,7 @@ std::string AudioDevice::getName() const ...@@ -160,7 +160,7 @@ std::string AudioDevice::getName() const
theScope, theScope,
0 }; // channel 0 }; // channel
verify_noerr(AudioObjectGetPropertyData(id_, __Verify_noErr(AudioObjectGetPropertyData(id_,
&theAddress, &theAddress,
0, 0,
NULL, NULL,
......
...@@ -415,7 +415,7 @@ CoreLayer::getDeviceList(bool getCapture) const ...@@ -415,7 +415,7 @@ CoreLayer::getDeviceList(bool getCapture) const
kAudioObjectPropertyElementMaster kAudioObjectPropertyElementMaster
}; };
verify_noerr(AudioObjectGetPropertyDataSize(kAudioObjectSystemObject, __Verify_noErr(AudioObjectGetPropertyDataSize(kAudioObjectSystemObject,
&theAddress, &theAddress,
0, 0,
nullptr, nullptr,
...@@ -424,7 +424,7 @@ CoreLayer::getDeviceList(bool getCapture) const ...@@ -424,7 +424,7 @@ CoreLayer::getDeviceList(bool getCapture) const
std::size_t nDevices = propsize / sizeof(AudioDeviceID); std::size_t nDevices = propsize / sizeof(AudioDeviceID);
auto devids = std::vector<AudioDeviceID>(nDevices); auto devids = std::vector<AudioDeviceID>(nDevices);
verify_noerr(AudioObjectGetPropertyData(kAudioObjectSystemObject, __Verify_noErr(AudioObjectGetPropertyData(kAudioObjectSystemObject,
&theAddress, &theAddress,
0, 0,
nullptr, nullptr,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment