mirror of
https://github.com/librespot-org/librespot.git
synced 2025-10-06 03:50:06 +02:00
Store and process samples in 64 bit (#773)
This commit is contained in:
parent
8062bd2518
commit
fe2d5ca7c6
19 changed files with 177 additions and 149 deletions
|
@ -41,6 +41,7 @@ fn list_outputs() {
|
|||
fn open_device(dev_name: &str, format: AudioFormat) -> Result<(PCM, Frames), Box<Error>> {
|
||||
let pcm = PCM::new(dev_name, Direction::Playback, false)?;
|
||||
let alsa_format = match format {
|
||||
AudioFormat::F64 => Format::float64(),
|
||||
AudioFormat::F32 => Format::float(),
|
||||
AudioFormat::S32 => Format::s32(),
|
||||
AudioFormat::S24 => Format::s24(),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue