From 120bd88326c1f79b519fe3d07c212e34b2c4bc0a Mon Sep 17 00:00:00 2001 From: Lyndon Brown Date: Fri, 27 Nov 2020 05:08:16 +0000 Subject: [PATCH] fix alignment causing format check failure --- playback/src/audio_backend/pulseaudio.rs | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/playback/src/audio_backend/pulseaudio.rs b/playback/src/audio_backend/pulseaudio.rs index 2f0e85d3..e0b9ad9b 100644 --- a/playback/src/audio_backend/pulseaudio.rs +++ b/playback/src/audio_backend/pulseaudio.rs @@ -1,5 +1,5 @@ use super::{Open, Sink}; -use libpulse_binding as pulse; +use libpulse_binding::{self as pulse, stream::Direction}; use libpulse_simple_binding::Simple; use std::io; @@ -39,14 +39,14 @@ impl Sink for PulseAudioSink { let device = self.device.as_ref().map(|s| (*s).as_str()); let result = Simple::new( - None, // Use the default server. - APP_NAME, // Our application's name. - pulse::stream::Direction::Playback, - device, - STREAM_NAME, // desc of our stream. - &self.ss, // Our sample format. - None, // Use default channel map - None, // Use default buffering attributes. + None, // Use the default server. + APP_NAME, // Our application's name. + Direction::Playback, // Direction. + device, // Our device (sink) name. + STREAM_NAME, // Description of our stream. + &self.ss, // Our sample format. + None, // Use default channel map. + None, // Use default buffering attributes. ); match result { Ok(s) => {