From 14c1258a57a64d719d05752f980ee8ea29ac1809 Mon Sep 17 00:00:00 2001 From: est31 Date: Sat, 10 Aug 2019 15:10:43 +0200 Subject: [PATCH] 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 --- src/host/coreaudio/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/host/coreaudio/mod.rs b/src/host/coreaudio/mod.rs index 491b4b8..1c4903b 100644 --- a/src/host/coreaudio/mod.rs +++ b/src/host/coreaudio/mod.rs @@ -360,7 +360,7 @@ impl Device { }; unsafe { - let asbd: AudioStreamBasicDescription = mem::uninitialized(); + let asbd: AudioStreamBasicDescription = mem::zeroed(); let data_size = mem::size_of::() as u32; let status = AudioObjectGetPropertyData( self.audio_device_id,