Fix compilation on ALSA
This commit is contained in:
parent
74286fcbf0
commit
541af2f7f2
|
@ -3,6 +3,7 @@ extern crate libc;
|
||||||
|
|
||||||
pub use self::enumerate::{EndpointsIterator, get_default_endpoint};
|
pub use self::enumerate::{EndpointsIterator, get_default_endpoint};
|
||||||
|
|
||||||
|
use ChannelPosition;
|
||||||
use CreationError;
|
use CreationError;
|
||||||
use Format;
|
use Format;
|
||||||
use FormatsEnumerationError;
|
use FormatsEnumerationError;
|
||||||
|
@ -25,7 +26,7 @@ impl Endpoint {
|
||||||
-> Result<SupportedFormatsIterator, FormatsEnumerationError>
|
-> Result<SupportedFormatsIterator, FormatsEnumerationError>
|
||||||
{
|
{
|
||||||
let format = Format {
|
let format = Format {
|
||||||
channels: 2,
|
channels: vec![ChannelPosition::FrontLeft, ChannelPosition::FrontRight],
|
||||||
samples_rate: SamplesRate(44100),
|
samples_rate: SamplesRate(44100),
|
||||||
data_type: SampleFormat::I16,
|
data_type: SampleFormat::I16,
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue