Merge pull request #86 from mvdnes/alsa_nosound
Catch another 'device not found' error code with ALSA
This commit is contained in:
commit
bed1efcb5a
|
@ -32,6 +32,7 @@ impl Endpoint {
|
|||
match alsa::snd_pcm_open(&mut playback_handle, device_name.as_ptr() as *const _,
|
||||
alsa::SND_PCM_STREAM_PLAYBACK, alsa::SND_PCM_NONBLOCK)
|
||||
{
|
||||
-2 |
|
||||
-16 /* determined empirically */ => return Err(FormatsEnumerationError::DeviceNotAvailable),
|
||||
e => check_errors(e).unwrap()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue