added: bitvis (WIP)
This commit is contained in:
parent
8eb8117da3
commit
4d4f7c585c
22 changed files with 2060 additions and 4 deletions
53
src/bitvis.h
Normal file
53
src/bitvis.h
Normal file
|
@ -0,0 +1,53 @@
|
|||
/*
|
||||
* bitvis
|
||||
* Copyright (C) Bob 2012
|
||||
*
|
||||
* bitvis is free software: you can redistribute it and/or modify it
|
||||
* under the terms of the GNU General Public License as published by the
|
||||
* Free Software Foundation, either version 3 of the License, or
|
||||
* (at your option) any later version.
|
||||
*
|
||||
* bitvis is distributed in the hope that it will be useful, but
|
||||
* WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
|
||||
* See the GNU General Public License for more details.
|
||||
*
|
||||
* You should have received a copy of the GNU General Public License along
|
||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
*/
|
||||
|
||||
#ifndef BITVIS_H
|
||||
#define BITVIS_H
|
||||
|
||||
#include "jackclient.h"
|
||||
#include "fft.h"
|
||||
|
||||
class CBitVis
|
||||
{
|
||||
public:
|
||||
CBitVis(int argc, char *argv[]);
|
||||
~CBitVis();
|
||||
|
||||
void Setup();
|
||||
void Process();
|
||||
void Cleanup();
|
||||
|
||||
private:
|
||||
bool m_stop;
|
||||
CJackClient m_jackclient;
|
||||
int m_signalfd;
|
||||
Cfft m_fft;
|
||||
float* m_buf;
|
||||
int m_bufsize;
|
||||
float* m_fftbuf;
|
||||
int m_samplecounter;
|
||||
int m_nrffts;
|
||||
|
||||
void SetupSignals();
|
||||
void ProcessSignalfd();
|
||||
void ProcessAudio();
|
||||
static void JackError(const char* jackerror);
|
||||
static void JackInfo(const char* jackinfo);
|
||||
};
|
||||
|
||||
#endif //BITVIS_H
|
Loading…
Add table
Add a link
Reference in a new issue