Skip to content
Snippets Groups Projects
Commit 084b7886 authored by Damian Karaś's avatar Damian Karaś
Browse files

ALSA_support: correct error codes


Signed-off-by: default avatarDamian Karaś <s176030@student.pg.edu.pl>
parent 6f272d7b
No related merge requests found
......@@ -423,7 +423,7 @@ int DSP::ALSA_object_t::open_alsa_device(snd_pcm_stream_t stream_type)
default:
DSP::log << "Unsupported no of bytes in channel" << endl;
return -1;
return -6;
break;
}
}
......@@ -495,7 +495,7 @@ int DSP::ALSA_object_t::open_alsa_device(snd_pcm_stream_t stream_type)
default:
DSP::log << "Unsupported no of bytes in channel" << endl;
return -1;
return -6;
break;
}
}
......@@ -507,7 +507,7 @@ int DSP::ALSA_object_t::open_alsa_device(snd_pcm_stream_t stream_type)
if (rc < 0)
{
DSP::log << "Unable to set blocking mode" << endl;
return -1;
return -7;
}
}
......@@ -518,7 +518,7 @@ int DSP::ALSA_object_t::open_alsa_device(snd_pcm_stream_t stream_type)
if (rc < 0)
{
DSP::log << "Unable to set non blocking mode" << endl;
return -1;
return -8;
}
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment