Catch another 'device not found' error code

This commit is contained in:
Mathijs van de Nes 2015-10-13 12:22:07 +02:00
parent f795936b03
commit 951b7f5e65
1 changed files with 1 additions and 0 deletions

View File

@ -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()
}