mirror of
https://github.com/badaix/snapcast.git
synced 2025-05-22 05:26:17 +02:00
fixed cppcheck warnings
This commit is contained in:
parent
08c35ccc62
commit
0c87becca0
6 changed files with 17 additions and 17 deletions
|
@ -39,11 +39,10 @@ PcmDevice getPcmDevice(const std::string& soundcard)
|
|||
{
|
||||
#ifndef ANDROID
|
||||
vector<PcmDevice> pcmDevices = AlsaPlayer::pcm_list();
|
||||
int soundcardIdx = -1;
|
||||
|
||||
try
|
||||
{
|
||||
soundcardIdx = std::stoi(soundcard);
|
||||
int soundcardIdx = std::stoi(soundcard);
|
||||
for (auto dev: pcmDevices)
|
||||
if (dev.idx == soundcardIdx)
|
||||
return dev;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue