You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
85 lines
3.0 KiB
85 lines
3.0 KiB
15 years ago
|
/***************************************************************************
|
||
|
alsa-sound-configuration.h - description
|
||
|
-------------------
|
||
|
begin : Thu Sep 30 2004
|
||
|
copyright : (C) 2004 by Martin Witte
|
||
|
email : witte@kawo1.rwth-aachen.de
|
||
|
***************************************************************************/
|
||
|
|
||
|
/***************************************************************************
|
||
|
* *
|
||
|
* This program 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 2 of the License, or *
|
||
|
* (at your option) any later version. *
|
||
|
* *
|
||
|
***************************************************************************/
|
||
|
|
||
|
#ifndef KRADIO_ALSA_SOUND_CONFIGURATION_H
|
||
|
#define KRADIO_ALSA_SOUND_CONFIGURATION_H
|
||
|
|
||
|
#ifdef HAVE_CONFIG_H
|
||
|
#include <config.h>
|
||
|
#endif
|
||
|
|
||
|
#include "alsa-sound-configuration-ui.h"
|
||
|
#include "alsa-sound.h"
|
||
|
#include "alsa-config-mixer-setting.h"
|
||
|
|
||
14 years ago
|
class TQHBoxLayout;
|
||
|
class TQGridLayout;
|
||
14 years ago
|
class QAlsaMixerElement;
|
||
14 years ago
|
class TQScrollView;
|
||
|
class TQFrame;
|
||
15 years ago
|
|
||
|
class AlsaSoundConfiguration : public AlsaSoundConfigurationUI
|
||
|
{
|
||
|
Q_OBJECT
|
||
13 years ago
|
|
||
15 years ago
|
public :
|
||
13 years ago
|
AlsaSoundConfiguration (TQWidget *parent, AlsaSoundDevice *);
|
||
15 years ago
|
~AlsaSoundConfiguration ();
|
||
|
|
||
|
protected slots:
|
||
|
|
||
|
void slotOK();
|
||
|
void slotCancel();
|
||
|
|
||
|
void slotSetDirty();
|
||
|
|
||
|
void slotUpdateConfig();
|
||
|
|
||
14 years ago
|
void slotPlaybackCardSelected(const TQString &cardname);
|
||
|
void slotCaptureCardSelected(const TQString &cardname);
|
||
15 years ago
|
|
||
|
protected:
|
||
14 years ago
|
int listSoundDevices(KComboBox *combobox, TQMap<TQString, int> *devname2dev, TQMap<int, TQString> *dev2devname, TQMap<int, int> *dev2idx, int card, snd_pcm_stream_t stream);
|
||
15 years ago
|
void saveCaptureMixerSettings();
|
||
|
void restoreCaptureMixerSettings();
|
||
|
|
||
|
AlsaSoundDevice *m_SoundDevice;
|
||
|
int m_currentCaptureCard;
|
||
14 years ago
|
TQMap<TQString, int> m_name2card,
|
||
15 years ago
|
m_name2capturedevice,
|
||
|
m_playbackDeviceName2dev,
|
||
|
m_captureDeviceName2dev;
|
||
14 years ago
|
TQMap<int, TQString> m_card2name,
|
||
15 years ago
|
m_dev2playbackDeviceName,
|
||
|
m_dev2captureDeviceName;
|
||
14 years ago
|
TQMap<int, int> m_captureCard2idx,
|
||
15 years ago
|
m_captureDevice2idx,
|
||
|
m_playbackCard2idx,
|
||
|
m_playbackDevice2idx;
|
||
14 years ago
|
TQGridLayout *m_groupMixerLayout;
|
||
|
TQScrollView *m_groupMixerScrollView;
|
||
|
TQFrame *m_groupMixerSubFrame;
|
||
14 years ago
|
TQMap<TQString, QAlsaMixerElement*> m_MixerElements;
|
||
15 years ago
|
|
||
14 years ago
|
TQMap<TQString, AlsaConfigMixerSetting> m_MixerSettings;
|
||
15 years ago
|
|
||
|
bool m_dirty;
|
||
|
bool m_ignore_updates;
|
||
|
};
|
||
|
|
||
|
#endif
|