summaryrefslogtreecommitdiff
path: root/src/visualizer.h
diff options
context:
space:
mode:
authorAndrzej Rybczak <electricityispower@gmail.com>2015-09-01 21:43:58 +0200
committerAndrzej Rybczak <electricityispower@gmail.com>2015-09-01 21:43:58 +0200
commitd2189aa0f4bf2ca7e2ad7aca81da2e86eaaaee7d (patch)
treea3d8ebd0aab30225c041e821e3b5ebed6265ac49 /src/visualizer.h
parentdbe655d159998b7dd0f75cca75129a8e7ee1f8d1 (diff)
visualizer: scale automatically if multiplier is 1
Diffstat (limited to 'src/visualizer.h')
-rw-r--r--src/visualizer.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/visualizer.h b/src/visualizer.h
index 48fd4d5f..8baf608a 100644
--- a/src/visualizer.h
+++ b/src/visualizer.h
@@ -60,6 +60,7 @@ struct Visualizer: Screen<NC::Window>, Tabbable
void SetFD();
void ResetFD();
void FindOutputID();
+ void ResetAutoScaleMultiplier();
private:
void DrawSoundWave(int16_t *, ssize_t, size_t, size_t);
@@ -78,6 +79,7 @@ private:
int m_fifo;
size_t m_samples;
+ double m_auto_scale_multiplier;
# ifdef HAVE_FFTW3_H
size_t m_fftw_results;
double *m_fftw_input;