Add ALSA PCM devices and option to set channels

Fixes #262
This commit is contained in:
jonas@jkvinge.net
2021-05-11 19:14:00 +02:00
parent 4a0a1a32a4
commit 5d96ee5492
12 changed files with 459 additions and 200 deletions

View File

@@ -0,0 +1,37 @@
/*
* Strawberry Music Player
* Copyright 2021, Jonas Kvinge <jonas@jkvinge.net>
*
* Strawberry is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Strawberry is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Strawberry. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef ALSAPCMDEVICEFINDER_H
#define ALSAPCMDEVICEFINDER_H
#include "config.h"
#include <QList>
#include "devicefinder.h"
class AlsaPCMDeviceFinder : public DeviceFinder {
public:
explicit AlsaPCMDeviceFinder();
bool Initialize() override { return true; }
QList<Device> ListDevices() override;
};
#endif // ALSAPCMDEVICEFINDER_H