Commit 017d319e authored by Rafaël Carré's avatar Rafaël Carré
Browse files

alsa: typo

parent 0e5127f7
...@@ -443,7 +443,7 @@ AlsaLayer::getSoundCardsInfo (int stream) ...@@ -443,7 +443,7 @@ AlsaLayer::getSoundCardsInfo (int stream)
ss << numCard; ss << numCard;
std::string name = "hw:" + ss.str(); 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) { if (snd_ctl_card_info (handle, info) == 0) {
snd_pcm_info_set_device (pcminfo , 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); snd_pcm_info_set_stream (pcminfo, (stream == SFL_PCM_CAPTURE) ? SND_PCM_STREAM_CAPTURE : SND_PCM_STREAM_PLAYBACK);
......
Markdown is supported
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