mirror of
https://git.jami.net/savoirfairelinux/jami-daemon.git
synced 2025-08-12 22:09:25 +08:00
coreaudio: update to new error-checking macro
Change-Id: I01d69f1bc9786c0b87e5fc193bf341ce3d981d21 Reviewed-by: Anthony Léonard <anthony.leonard@savoirfairelinux.com>
This commit is contained in:

committed by
Anthony Léonard

parent
549985eefe
commit
20094c7c07
@ -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,
|
||||
|
Reference in New Issue
Block a user