Skip to content

Commit c87193f

Browse files
committed
Revert "empty the analyzer when playback stops"
This reverts commit 6da7055.
1 parent 6da7055 commit c87193f

File tree

4 files changed

+0
-18
lines changed

4 files changed

+0
-18
lines changed

gui/applets/analyzer/AnalyzerApplet.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,12 @@ void AnalyzerApplet::closeEvent(QCloseEvent *e)
4141
void AnalyzerApplet::startGraphics()
4242
{
4343
this->player->onPlayheadChanged += make_pair(this, &AnalyzerApplet::redraw);
44-
this->player->onIsPlayingChanged += make_pair(this, &AnalyzerApplet::reset);
4544
this->analyzerWidget->connectSignals();
4645
}
4746

4847
void AnalyzerApplet::stopGraphics()
4948
{
5049
this->player->onPlayheadChanged -= this;
51-
this->player->onIsPlayingChanged -= this;
5250

5351
if (this->analyzerWidget != nullptr)
5452
{
@@ -107,12 +105,3 @@ void AnalyzerApplet::redraw(void *ctx, frame_t pos)
107105

108106
context->analyzerWidget->processData(context->player->getCurrentSong(), pos);
109107
}
110-
111-
void AnalyzerApplet::reset(void *ctx, bool isPlaying, Nullable<string>)
112-
{
113-
AnalyzerApplet *context = static_cast<AnalyzerApplet *>(ctx);
114-
if(!isPlaying)
115-
{
116-
context->analyzerWidget->reset();
117-
}
118-
}

gui/applets/analyzer/AnalyzerApplet.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ class AnalyzerApplet : public QMainWindow
4242
void closeEvent(QCloseEvent *e) override;
4343

4444
static void redraw(void *ctx, frame_t pos);
45-
static void reset(void *ctx, bool, Nullable<string>);
4645
};
4746

4847
#endif // ANALYZERAPPLET_H

gui/applets/analyzer/AnalyzerBase.cpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -172,10 +172,5 @@ void AnalyzerBase::setFps(int fps)
172172
m_renderTimer->setInterval(1000 / fps);
173173
}
174174

175-
void AnalyzerBase::reset()
176-
{
177-
m_fftData.fill(0);
178-
analyze(m_fftData);
179-
}
180175

181176
#include "AnalyzerBase.moc"

gui/applets/analyzer/AnalyzerBase.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,6 @@ class AnalyzerBase : public QGLWidget
6262
void disconnectSignals();
6363
// void currentDesktopChanged();
6464
void processData(const Song *s, frame_t playhead);
65-
void reset();
6665
};
6766

6867

0 commit comments

Comments
 (0)