Remove uninitalized from coreaudio backend
uninitialized is being deprecated in favour of MaybeUninit and friends. In fact, using mem::zeroed() here is the initialization method that apple docs recommend. https://developer.apple.com/documentation/coreaudiotypes/audiostreambasicdescription
This commit is contained in:
parent
268ea6cfbf
commit
14c1258a57
|
@ -360,7 +360,7 @@ impl Device {
|
||||||
};
|
};
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
let asbd: AudioStreamBasicDescription = mem::uninitialized();
|
let asbd: AudioStreamBasicDescription = mem::zeroed();
|
||||||
let data_size = mem::size_of::<AudioStreamBasicDescription>() as u32;
|
let data_size = mem::size_of::<AudioStreamBasicDescription>() as u32;
|
||||||
let status = AudioObjectGetPropertyData(
|
let status = AudioObjectGetPropertyData(
|
||||||
self.audio_device_id,
|
self.audio_device_id,
|
||||||
|
|
Loading…
Reference in New Issue