Merge pull request #457 from richardmitic/raspberry-pi-c-long

Use alsa::pcm::Frames in alsa API calls instead of fixed-width integers.
This commit is contained in:
est31 2020-07-27 16:50:33 +02:00 committed by GitHub
commit ecbb026e2b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -903,7 +903,7 @@ fn set_hw_params_from_format<'a>(
hw_params.set_channels(config.channels as u32)?;
match config.buffer_size {
BufferSize::Fixed(v) => hw_params.set_buffer_size(v as i64)?,
BufferSize::Fixed(v) => hw_params.set_buffer_size(v as alsa::pcm::Frames)?,
BufferSize::Default => {
// These values together represent a moderate latency and wakeup interval.
// Without them we are at the mercy of the device