Fix type-casting error for armv6 platforms
This commit is contained in:
parent
f3e7c46205
commit
c5e1ea5919
|
@ -1,6 +1,7 @@
|
||||||
extern crate alsa_sys as alsa;
|
extern crate alsa_sys as alsa;
|
||||||
extern crate libc;
|
extern crate libc;
|
||||||
|
|
||||||
|
use self::libc::c_long;
|
||||||
use crate::{
|
use crate::{
|
||||||
BackendSpecificError, BuildStreamError, ChannelCount, Data, DefaultStreamConfigError,
|
BackendSpecificError, BuildStreamError, ChannelCount, Data, DefaultStreamConfigError,
|
||||||
DeviceNameError, DevicesError, PauseStreamError, PlayStreamError, SampleFormat, SampleRate,
|
DeviceNameError, DevicesError, PauseStreamError, PlayStreamError, SampleFormat, SampleRate,
|
||||||
|
@ -763,7 +764,7 @@ fn process_output(
|
||||||
available_frames as alsa::snd_pcm_uframes_t,
|
available_frames as alsa::snd_pcm_uframes_t,
|
||||||
)
|
)
|
||||||
};
|
};
|
||||||
if result == -libc::EPIPE as i64 {
|
if result == -libc::EPIPE as c_long {
|
||||||
// buffer underrun
|
// buffer underrun
|
||||||
// TODO: Notify the user of this.
|
// TODO: Notify the user of this.
|
||||||
unsafe { alsa::snd_pcm_recover(stream.channel, result as i32, 0) };
|
unsafe { alsa::snd_pcm_recover(stream.channel, result as i32, 0) };
|
||||||
|
|
Loading…
Reference in New Issue