mirror of
https://github.com/librespot-org/librespot.git
synced 2024-12-18 17:11:53 +00:00
fix alignment causing format check failure
This commit is contained in:
parent
0411e69548
commit
120bd88326
1 changed files with 9 additions and 9 deletions
|
@ -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;
|
||||
|
||||
|
@ -41,11 +41,11 @@ impl Sink for PulseAudioSink {
|
|||
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.
|
||||
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 channel map.
|
||||
None, // Use default buffering attributes.
|
||||
);
|
||||
match result {
|
||||
|
|
Loading…
Reference in a new issue