Skip to content
Snippets Groups Projects
Commit 017d319e authored by Rafaël Carré's avatar Rafaël Carré
Browse files

alsa: typo

parent 0e5127f7
No related branches found
No related tags found
No related merge requests found
......@@ -443,7 +443,7 @@ AlsaLayer::getSoundCardsInfo (int stream)
ss << numCard;
std::string name = "hw:" + ss.str();
if (snd_ctl_open (&handle, name.c_str(), 0) != 0) {
if (snd_ctl_open (&handle, name.c_str(), 0) == 0) {
if (snd_ctl_card_info (handle, info) == 0) {
snd_pcm_info_set_device (pcminfo , 0);
snd_pcm_info_set_stream (pcminfo, (stream == SFL_PCM_CAPTURE) ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment