fix alignment causing format check failure

This commit is contained in:
Lyndon Brown 2020-11-27 05:08:16 +00:00
parent 0411e69548
commit 120bd88326

View file

@ -1,5 +1,5 @@
use super::{Open, Sink}; use super::{Open, Sink};
use libpulse_binding as pulse; use libpulse_binding::{self as pulse, stream::Direction};
use libpulse_simple_binding::Simple; use libpulse_simple_binding::Simple;
use std::io; use std::io;
@ -39,14 +39,14 @@ impl Sink for PulseAudioSink {
let device = self.device.as_ref().map(|s| (*s).as_str()); let device = self.device.as_ref().map(|s| (*s).as_str());
let result = Simple::new( let result = Simple::new(
None, // Use the default server. None, // Use the default server.
APP_NAME, // Our application's name. APP_NAME, // Our application's name.
pulse::stream::Direction::Playback, Direction::Playback, // Direction.
device, device, // Our device (sink) name.
STREAM_NAME, // desc of our stream. STREAM_NAME, // Description of our stream.
&self.ss, // Our sample format. &self.ss, // Our sample format.
None, // Use default channel map None, // Use default channel map.
None, // Use default buffering attributes. None, // Use default buffering attributes.
); );
match result { match result {
Ok(s) => { Ok(s) => {