prepared for dynamic mixer fader insertion

This commit is contained in:
Volker Fischer 2006-11-05 11:43:25 +00:00
parent bb76f4d911
commit e89eb96a37
4 changed files with 199 additions and 123 deletions

View file

@ -43,10 +43,13 @@
/* Definitions ****************************************************************/ /* Definitions ****************************************************************/
/* audio in fader range */ // audio in fader range
#define AUD_FADER_IN_MAX 100 #define AUD_FADER_IN_MAX 100
/* audio reverberation range */ // audio mixer fader range
#define AUD_MIX_FADER_MAX 100
// audio reverberation range
#define AUD_REVERB_MAX 100 #define AUD_REVERB_MAX 100

View file

@ -163,7 +163,51 @@ CLlconClientDlg::CLlconClientDlg ( CClient* pNCliP, QWidget* parent,
/* timers --------------------------------------------------------------- */ /* timers --------------------------------------------------------------- */
/* start timer for status bar */ /* start timer for status bar */
TimerStatus.start(STATUSBAR_UPDATE_TIME); TimerStatus.start(STATUSBAR_UPDATE_TIME);
// TEST
/*
QGridLayout* grid1 = new QGridLayout ( FrameAudioFaders, 2, 1 );
QSlider* pSliderChannelFader = new QSlider ( Qt::Vertical, FrameAudioFaders );
grid1->addWidget( pSliderChannelFader, 0, 0 );
pSliderChannelFader->setPageStep ( 1 );
pSliderChannelFader->setTickmarks ( QSlider::Both );
pSliderChannelFader->setRange(0, AUD_MIX_FADER_MAX);
pSliderChannelFader->setTickInterval(AUD_MIX_FADER_MAX / 9);
pSliderChannelFader->setValue ( AUD_MIX_FADER_MAX );
QLabel* pTextChannelName = new QLabel ( "Test", FrameAudioFaders );
grid1->addWidget( pTextChannelName, 1, 0 );
FrameAudioFadersLayout->insertLayout ( 0, grid1 );
QGridLayout* grid2 = new QGridLayout ( FrameAudioFaders, 2, 1 );
QSlider* pSliderChannelFader2 = new QSlider ( Qt::Vertical, FrameAudioFaders );
grid2->addWidget( pSliderChannelFader2, 0, 0 );
pSliderChannelFader2->setPageStep ( 1 );
pSliderChannelFader2->setTickmarks ( QSlider::Both );
pSliderChannelFader2->setRange(0, AUD_MIX_FADER_MAX);
pSliderChannelFader2->setTickInterval(AUD_MIX_FADER_MAX / 9);
pSliderChannelFader2->setValue ( AUD_MIX_FADER_MAX );
QLabel* pTextChannelName2 = new QLabel ( "Test", FrameAudioFaders );
grid2->addWidget( pTextChannelName2, 1, 0 );
FrameAudioFadersLayout->insertLayout ( 0, grid2 );
*/
} }
CLlconClientDlg::~CLlconClientDlg() CLlconClientDlg::~CLlconClientDlg()

View file

@ -11,7 +11,7 @@
<rect> <rect>
<x>0</x> <x>0</x>
<y>0</y> <y>0</y>
<width>445</width> <width>597</width>
<height>289</height> <height>289</height>
</rect> </rect>
</property> </property>
@ -426,11 +426,11 @@
<class>QButtonGroup</class> <class>QButtonGroup</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>GroupBoxAudioInput</cstring> <cstring>GroupBoxReverberation</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>title</name> <name>title</name>
<string>Audio In</string> <string>Reverb</string>
</property> </property>
<vbox> <vbox>
<property stdset="1"> <property stdset="1">
@ -445,9 +445,9 @@
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout14</cstring> <cstring>Layout13</cstring>
</property> </property>
<hbox> <vbox>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>0</number> <number>0</number>
@ -457,116 +457,43 @@
<number>6</number> <number>6</number>
</property> </property>
<widget> <widget>
<class>QLayoutWidget</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout12</cstring> <cstring>TextLabelAudReverb</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Level</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignCenter</set>
</property>
<property>
<name>hAlign</name>
</property> </property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextAudInFader</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Audio
Fader</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignCenter</set>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
<widget>
<class>QSlider</class>
<property stdset="1">
<name>name</name>
<cstring>SliderAudInFader</cstring>
</property>
<property stdset="1">
<name>pageStep</name>
<number>1</number>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>tickmarks</name>
<enum>Both</enum>
</property>
</widget>
</vbox>
</widget> </widget>
<widget> <widget>
<class>QLayoutWidget</class> <class>QSlider</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout13</cstring> <cstring>SliderAudReverb</cstring>
</property>
<property stdset="1">
<name>pageStep</name>
<number>1</number>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>tickmarks</name>
<enum>Both</enum>
</property> </property>
<vbox>
<property stdset="1">
<name>margin</name>
<number>0</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget>
<class>QLabel</class>
<property stdset="1">
<name>name</name>
<cstring>TextLabelAudReverb</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Reverb
Level</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignCenter</set>
</property>
<property>
<name>hAlign</name>
</property>
</widget>
<widget>
<class>QSlider</class>
<property stdset="1">
<name>name</name>
<cstring>SliderAudReverb</cstring>
</property>
<property stdset="1">
<name>pageStep</name>
<number>1</number>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>tickmarks</name>
<enum>Both</enum>
</property>
</widget>
</vbox>
</widget> </widget>
</hbox> </vbox>
</widget> </widget>
<widget> <widget>
<class>QLabel</class> <class>QLabel</class>
@ -576,8 +503,7 @@ Level</string>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>Reverb Chan <string>Channel</string>
Selection</string>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>alignment</name> <name>alignment</name>
@ -587,13 +513,56 @@ Selection</string>
<name>hAlign</name> <name>hAlign</name>
</property> </property>
</widget> </widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>RadioButtonRevSelL</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Left</string>
</property>
</widget>
<widget>
<class>QRadioButton</class>
<property stdset="1">
<name>name</name>
<cstring>RadioButtonRevSelR</cstring>
</property>
<property stdset="1">
<name>text</name>
<string>Right</string>
</property>
</widget>
</vbox>
</widget>
<widget>
<class>QButtonGroup</class>
<property stdset="1">
<name>name</name>
<cstring>GroupBoxAudioInput</cstring>
</property>
<property stdset="1">
<name>title</name>
<string>Audio Mixer</string>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<widget> <widget>
<class>QLayoutWidget</class> <class>QLayoutWidget</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>Layout11</cstring> <cstring>Layout15</cstring>
</property> </property>
<hbox> <vbox>
<property stdset="1"> <property stdset="1">
<name>margin</name> <name>margin</name>
<number>0</number> <number>0</number>
@ -603,30 +572,92 @@ Selection</string>
<number>6</number> <number>6</number>
</property> </property>
<widget> <widget>
<class>QRadioButton</class> <class>QSlider</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>RadioButtonRevSelL</cstring> <cstring>SliderAudInFader</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>pageStep</name>
<string>L</string> <number>1</number>
</property>
<property stdset="1">
<name>orientation</name>
<enum>Vertical</enum>
</property>
<property stdset="1">
<name>tickmarks</name>
<enum>Both</enum>
</property> </property>
</widget> </widget>
<widget> <widget>
<class>QRadioButton</class> <class>QLabel</class>
<property stdset="1"> <property stdset="1">
<name>name</name> <name>name</name>
<cstring>RadioButtonRevSelR</cstring> <cstring>TextAudInFader</cstring>
</property> </property>
<property stdset="1"> <property stdset="1">
<name>text</name> <name>text</name>
<string>R</string> <string>Audio
Fader</string>
</property>
<property stdset="1">
<name>alignment</name>
<set>AlignCenter</set>
</property>
<property>
<name>hAlign</name>
</property> </property>
</widget> </widget>
</vbox>
</widget>
<widget>
<class>QFrame</class>
<property stdset="1">
<name>name</name>
<cstring>FrameAudioFaders</cstring>
</property>
<property stdset="1">
<name>frameShape</name>
<enum>StyledPanel</enum>
</property>
<property stdset="1">
<name>frameShadow</name>
<enum>Sunken</enum>
</property>
<hbox>
<property stdset="1">
<name>margin</name>
<number>11</number>
</property>
<property stdset="1">
<name>spacing</name>
<number>6</number>
</property>
<spacer>
<property>
<name>name</name>
<cstring>Spacer2</cstring>
</property>
<property>
<name>orientation</name>
<enum>Horizontal</enum>
</property>
<property>
<name>sizeType</name>
<enum>Expanding</enum>
</property>
<property>
<name>sizeHint</name>
<size>
<width>20</width>
<height>20</height>
</size>
</property>
</spacer>
</hbox> </hbox>
</widget> </widget>
</vbox> </hbox>
</widget> </widget>
</hbox> </hbox>
</widget> </widget>

View file

@ -59,8 +59,6 @@ MESSAGES
- Gain of channel PROTMESSID_CHANNEL_GAIN - Gain of channel PROTMESSID_CHANNEL_GAIN
for each connected client append following data:
+--------------------+--------------+ +--------------------+--------------+
| 2 bytes channel ID | 2 bytes gain | | 2 bytes channel ID | 2 bytes gain |
+--------------------+--------------+ +--------------------+--------------+