Skip to content

Commit

Permalink
beta 1.6.2.010901
Browse files Browse the repository at this point in the history
fix rollOff signal
  • Loading branch information
thorwe committed Jan 8, 2015
1 parent f414f2b commit 799585b
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ TSServersInfo* centralStation = TSServersInfo::instance();
const char* ts3plugin_name() { return "CrossTalk"; }

/* Plugin version */
const char* ts3plugin_version() { return "1.6.2.010801"; }
const char* ts3plugin_version() { return "1.6.2.010901"; }

/* Plugin API version. Must be the same as the clients API major version, else the plugin fails to load. */
int ts3plugin_apiVersion() { return PLUGIN_API_VERSION; }
Expand Down
14 changes: 12 additions & 2 deletions src/positional_audio/groupbox_positional_audio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@ GroupBoxPositionalAudio::GroupBoxPositionalAudio(QWidget *parent) :
connect(ui->groupBoxVolume,SIGNAL(toggled(bool)),this,SIGNAL(attenuationSet(bool)));
connect(ui->spinBox_MinDistance,SIGNAL(valueChanged(int)),this,SIGNAL(distanceMinChanged(int)));
connect(ui->spinBox_MaxDistance,SIGNAL(valueChanged(int)),this,SIGNAL(distanceMaxChanged(int)));
connect(ui->doubleSpinBox_RollOff,SIGNAL(valueChanged(double)),this,SIGNAL(rollOffChanged(float))); //let's see if that works
connect(ui->doubleSpinBox_RollOffMax,SIGNAL(valueChanged(double)),this,SIGNAL(rollOffMaxChanged(float)));
connect(ui->doubleSpinBox_RollOff,SIGNAL(valueChanged(double)),this,SLOT(on_DoubleSpinBoxRollOff_valueChanged(double)));
connect(ui->doubleSpinBox_RollOffMax,SIGNAL(valueChanged(double)),this,SLOT(on_DoubleSpinBoxRollOffMax_valueChanged(double)));

connect(ui->groupBoxServerSettings,SIGNAL(enabledSet(QString,bool)),this,SIGNAL(ServerEnabledSet(QString,bool)));
connect(ui->groupBoxServerSettings,SIGNAL(sendIntervalChange(QString,float)),this,SIGNAL(ServerSendIntervalChange(QString,float)));
Expand Down Expand Up @@ -84,3 +84,13 @@ void GroupBoxPositionalAudio::UpdateUIRollOffMax(float val)
ui->doubleSpinBox_RollOffMax->setValue(val);
this->blockSignals(false);
}

void GroupBoxPositionalAudio::on_DoubleSpinBoxRollOff_valueChanged(double val)
{
emit rollOffChanged(static_cast<float>(val));
}

void GroupBoxPositionalAudio::on_DoubleSpinBoxRollOffMax_valueChanged(double val)
{
emit rollOffMaxChanged(static_cast<float>(val));
}
3 changes: 3 additions & 0 deletions src/positional_audio/groupbox_positional_audio.h
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@ public slots:
void UpdateUIRollOff(float val);
void UpdateUIRollOffMax(float val);

void on_DoubleSpinBoxRollOff_valueChanged(double val);
void on_DoubleSpinBoxRollOffMax_valueChanged(double val);

signals:
void enabledSet(bool);
void cameraSet(bool);
Expand Down
3 changes: 0 additions & 3 deletions src/positional_audio/mod_positionalaudio.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@

#include "../talkers.h"
#include "../ts_helpers_qt.h"
#include "../ts_logging_qt.h"

#include "ts_serversinfo.h"

Expand Down Expand Up @@ -166,7 +165,6 @@ void PositionalAudio::setRollOff(float val)
return;
m_rollOff = val;
//m_rollOff_Lin = db2lin_alt2(m_rollOff);

emit rollOffChanged(m_rollOff);
}

Expand All @@ -176,7 +174,6 @@ void PositionalAudio::setRollOffMax(float val)
return;
m_rollOffMax = val;
m_rollOffMax_Lin = db2lin_alt2(m_rollOffMax);

emit rollOffMaxChanged(m_rollOffMax);
}

Expand Down

0 comments on commit 799585b

Please sign in to comment.