Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
audioStreamer.h
1 
2 #ifndef AUDIOSTREAMER_H
3 #define AUDIOSTREAMER_H
4 
5 #include <QThread>
6 #include <fftw3.h>
7 
8 class audioStreamer : public QThread
9 {
10 public:
11  audioStreamer() {
12  running = 0;
13  inputData = (double *)malloc(sizeof(double)*512);
14  outputData = (fftw_complex *) fftw_malloc(sizeof(fftw_complex)*512);
15  inverseOut = (double *)malloc(sizeof(double)*512);
16  };
17  void quit();
18  void run();
19  double *inputData;
20  fftw_complex *outputData;
21  double *inverseOut;
22  double* currentNoteFrequency;
23  char* currentNote;
24 
25 private:
26  bool running;
27 
28 };
29 
30 #endif
Definition: audioStreamer.h:8