diff options
author | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-01 04:33:12 +0200 |
---|---|---|
committer | Andrzej Rybczak <electricityispower@gmail.com> | 2009-09-01 04:33:12 +0200 |
commit | 1456e47a0bdb2ccc82d0f4d42643e84d001177ee (patch) | |
tree | 885c4e9f4bf5b8f761cf301b09802c2840aadba5 /src/visualizer.h | |
parent | 102e14529be1ceb3f5459a5ae6b5ad66b9c59947 (diff) |
new visualization type: sound wave
Diffstat (limited to 'src/visualizer.h')
-rw-r--r-- | src/visualizer.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/visualizer.h b/src/visualizer.h index cc887720..50f5ad30 100644 --- a/src/visualizer.h +++ b/src/visualizer.h @@ -44,7 +44,7 @@ class Visualizer : public Screen<Window> virtual void Scroll(Where, const int *) { } virtual void EnterPressed() { } - virtual void SpacePressed() { } + virtual void SpacePressed(); virtual void MouseButtonPressed(MEVENT) { } virtual NCurses::List *GetList() { return 0; } @@ -58,6 +58,9 @@ class Visualizer : public Screen<Window> virtual void Init(); private: + void DrawSoundWave(int16_t *, ssize_t); + void DrawFrequencySpectrum(int16_t *, ssize_t); + int itsFifo; unsigned *itsFreqsMagnitude; double *itsInput; |