1
/* Copyright (C) 2005-2009, Thorvald Natvig <thorvald@natvig.com>
5
Redistribution and use in source and binary forms, with or without
6
modification, are permitted provided that the following conditions
9
- Redistributions of source code must retain the above copyright notice,
10
this list of conditions and the following disclaimer.
11
- Redistributions in binary form must reproduce the above copyright notice,
12
this list of conditions and the following disclaimer in the documentation
13
and/or other materials provided with the distribution.
14
- Neither the name of the Mumble Developers nor the names of its
15
contributors may be used to endorse or promote products derived from this
16
software without specific prior written permission.
18
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
19
``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
20
LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
21
A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR
22
CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
23
EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
24
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
25
PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
26
LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
27
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
28
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31
#ifndef _AUDIOCONFIGDIALOG_H
32
#define _AUDIOCONFIGDIALOG_H
34
#include "ConfigDialog.h"
36
#include "ui_AudioInput.h"
37
#include "ui_AudioOutput.h"
39
class AudioInputDialog : public ConfigWidget, public Ui::AudioInput {
42
Q_DISABLE_COPY(AudioInputDialog)
45
void hideEvent(QHideEvent *event);
46
void showEvent(QShowEvent *event);
48
AudioInputDialog(Settings &st);
49
virtual QString title() const;
50
virtual QIcon icon() const;
53
void load(const Settings &r);
56
void on_qsTransmitHold_valueChanged(int v);
57
void on_qsFrames_valueChanged(int v);
58
void on_qsQuality_valueChanged(int v);
59
void on_qsAmp_valueChanged(int v);
60
void on_qsDoublePush_valueChanged(int v);
61
void on_qsNoise_valueChanged(int v);
62
void on_qsIdle_valueChanged(int v);
63
void on_qcbTransmit_currentIndexChanged(int v);
64
void on_qcbSystem_currentIndexChanged(int);
65
void on_Tick_timeout();
68
class AudioOutputDialog : public ConfigWidget, public Ui::AudioOutput {
71
Q_DISABLE_COPY(AudioOutputDialog)
73
AudioOutputDialog(Settings &st);
74
virtual QString title() const;
75
virtual QIcon icon() const;
78
void load(const Settings &r);
80
void on_qsDelay_valueChanged(int v);
81
void on_qsJitter_valueChanged(int v);
82
void on_qsVolume_valueChanged(int v);
83
void on_qsOtherVolume_valueChanged(int v);
84
void on_qsPacketDelay_valueChanged(int v);
85
void on_qsPacketLoss_valueChanged(int v);
86
void on_qcbLoopback_currentIndexChanged(int v);
87
void on_qsMinDistance_valueChanged(int v);
88
void on_qsMaxDistance_valueChanged(int v);
89
void on_qsBloom_valueChanged(int v);
90
void on_qsMaxDistVolume_valueChanged(int v);
91
void on_qcbSystem_currentIndexChanged(int);
92
void on_qcbPositional_stateChanged(int);