LMMS
Loading...
Searching...
No Matches
AudioAlsaSetupWidget.h
Go to the documentation of this file.
1/*
2 * AudioAlsaSetupWidget.h - Implements a setup widget for ALSA-PCM-output
3 *
4 * Copyright (c) 2004-2015 Tobias Doerffel <tobydox/at/users.sourceforge.net>
5 *
6 * This file is part of LMMS - https://lmms.io
7 *
8 * This program is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU General Public
10 * License as published by the Free Software Foundation; either
11 * version 2 of the License, or (at your option) any later version.
12 *
13 * This program is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * General Public License for more details.
17 *
18 * You should have received a copy of the GNU General Public
19 * License along with this program (see COPYING); if not, write to the
20 * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
21 * Boston, MA 02110-1301 USA.
22 *
23 */
24
25#ifndef LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H
26#define LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H
27
28#include "lmmsconfig.h"
29
30#ifdef LMMS_HAVE_ALSA
31
33
34#include "AudioAlsa.h"
35
36
37class QComboBox;
38
39namespace lmms::gui
40{
41
42class LcdSpinBox;
43
45{
46 Q_OBJECT
47
48public:
49 AudioAlsaSetupWidget( QWidget * _parent );
50 ~AudioAlsaSetupWidget() override;
51
52 void saveSettings() override;
53
54public slots:
55 void onCurrentIndexChanged(int index);
56
57private:
58 QComboBox * m_deviceComboBox;
60
63};
64
65} // namespace lmms::gui
66
67#endif // LMMS_HAVE_ALSA
68
69#endif // LMMS_GUI_AUDIO_ALSA_SETUP_WIDGET_H
std::vector< DeviceInfo > DeviceInfoCollection
Definition AudioAlsa.h:68
AudioAlsa::DeviceInfoCollection m_deviceInfos
Definition AudioAlsaSetupWidget.h:62
QComboBox * m_deviceComboBox
Definition AudioAlsaSetupWidget.h:58
int m_selectedDevice
Definition AudioAlsaSetupWidget.h:61
~AudioAlsaSetupWidget() override
Definition AudioAlsaSetupWidget.cpp:88
AudioAlsaSetupWidget(QWidget *_parent)
Definition AudioAlsaSetupWidget.cpp:39
void onCurrentIndexChanged(int index)
Definition AudioAlsaSetupWidget.cpp:113
LcdSpinBox * m_channels
Definition AudioAlsaSetupWidget.h:59
void saveSettings() override
Definition AudioAlsaSetupWidget.cpp:96
AudioDeviceSetupWidget(const QString &_caption, QWidget *_parent)
Definition AudioDeviceSetupWidget.cpp:30
Definition LcdSpinBox.h:35
Definition AudioPortAudio.cpp:223