mirror of
https://github.com/mumble-voip/mumble.git
synced 2025-10-26 11:19:16 +00:00
Updates to enable compilation on Linux, even if it's missing features.
git-svn-id: https://mumble.svn.sourceforge.net/svnroot/mumble/trunk@303 05730e5d-ab1b-0410-a4ac-84af385074fa
This commit is contained in:
parent
d94f13bf47
commit
ae2fcbd9be
@ -140,8 +140,6 @@ AudioInput::~AudioInput()
|
||||
delete [] pfY;
|
||||
}
|
||||
|
||||
int frama = 0;
|
||||
|
||||
void AudioInput::encodeAudioFrame() {
|
||||
int iArg;
|
||||
float fArg;
|
||||
@ -158,19 +156,24 @@ void AudioInput::encodeAudioFrame() {
|
||||
return;
|
||||
}
|
||||
|
||||
frama++;
|
||||
if (frama >= 100)
|
||||
frama = 0;
|
||||
// #define ECHOTEST
|
||||
#ifdef ECHOTEST
|
||||
|
||||
static double framhist[10];
|
||||
|
||||
for(int i=0;i<9;i++)
|
||||
framhist[i]=framhist[i+1];
|
||||
framhist[9]=1+(int) (310.0*rand()/(RAND_MAX+1.0));
|
||||
|
||||
// Sine wave test
|
||||
/*
|
||||
for(i=0;i<iFrameSize;i++) {
|
||||
psMic[i] += (sin(((5.0 + (frama + 0)%50) * M_PI * i) / (iFrameSize * 1.0)) * 4096.0);
|
||||
psSpeaker[i] = (sin(((5.0 + (frama + 4)%50) * M_PI * i) / (iFrameSize * 1.0)) * 8192.0);
|
||||
psMic[i] += (sin((framhist[0] * M_PI * i) / (iFrameSize * 1.0)) * 4096.0);
|
||||
psSpeaker[i] = (sin((framhist[4] * M_PI * i) / (iFrameSize * 1.0)) * 8192.0);
|
||||
// psSpeaker[i] = psMic[i] * 2;
|
||||
// qWarning("%d %d", i, psMic[i]);
|
||||
}
|
||||
*/
|
||||
#endif
|
||||
|
||||
|
||||
max=1;
|
||||
for(i=0;i<iFrameSize;i++)
|
||||
|
||||
@ -160,11 +160,8 @@ void AudioEchoWidget::paintGL() {
|
||||
|
||||
mapEchoToColor(WGT(i, j));
|
||||
glVertex2f(xa, ya);
|
||||
|
||||
glVertex2f(xb, ya);
|
||||
|
||||
glVertex2f(xb, yb);
|
||||
|
||||
glVertex2f(xa, yb);
|
||||
}
|
||||
}
|
||||
@ -344,6 +341,20 @@ AudioStats::AudioStats(QWidget *p) : QDialog(p) {
|
||||
"Under good conditions, there should be just a tiny flutter of blue at the bottom. If the blue is more than "
|
||||
"halfway up on the graph, you have a seriously noisy environment."));
|
||||
|
||||
if (aewEcho) {
|
||||
aewEcho->setToolTip(tr("Weights of the echo canceller"));
|
||||
aewEcho->setWhatsThis(tr("This shows the weights of the echo canceller, with time increasing downwards and frequency increasing to the right.<br />"
|
||||
"Ideally, this should be black, indicating no echo exists at all. More commonly, you'll have one or more horizontal stripes "
|
||||
"of bluish color representing time delayed echo. If you have reddish stripes instead of blue, the signal is inverted somewhere "
|
||||
"along the path, and while this won't affect echo cancellation, you might want to check your cabling.<br />"
|
||||
"If you have a checkerboard pattern of small, alternating red/blue rectangles, the echo canceller is having trouble locking on "
|
||||
"to your echo. Your echo path should preferably be stable over a bit of time, so using a headphone microphone (which moves) with "
|
||||
"stationary loudspeakers will hinder the adaptation. <br />"
|
||||
"If the entire image fluctuates massively, the echo canceller fails to find any correlation whatsoever between the two input "
|
||||
"sources (speakers and microphone). Either you have a very long delay on the echo, or one of the input sources is misconfigured."
|
||||
));
|
||||
}
|
||||
|
||||
QMetaObject::connectSlotsByName(this);
|
||||
|
||||
bTalking = false;
|
||||
|
||||
@ -331,9 +331,11 @@ void MainWindow::setupGui() {
|
||||
gsMetaChannel=new GlobalShortcut(this, idx++, "Join Channel");
|
||||
gsMetaChannel->setObjectName("MetaChannel");
|
||||
|
||||
#ifdef Q_OS_WIN
|
||||
gsToggleOverlay=new GlobalShortcut(this, idx++, "Toggle Overlay");
|
||||
gsToggleOverlay->setObjectName("ToggleOverlay");
|
||||
connect(gsToggleOverlay, SIGNAL(down()), g.o, SLOT(toggleShow()));
|
||||
#endif
|
||||
|
||||
qsSplit = new QSplitter(Qt::Horizontal, this);
|
||||
qsSplit->addWidget(qteLog);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user