Pitch Perfector
A real-time pitch-shifting microphone project at the University of Glasgow
 All Classes Functions
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
dispatch Class Reference

This class handles the callback functionality from RtAudio. More...

#include <dispatch.h>

Public Member Functions

 dispatch (fft *fourierPtr, vocoder *vocoderPtr)
 Collect pointers to objects to use in processing.
 
 dispatch (fft *fourierPtr, Vocoder *vocoderPtr)
 

Static Public Member Functions

static int caller (void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data)
 Callback function for RtAudio.
 
static int caller (void *outputBuffer, void *inputBuffer, unsigned int nBufferFrames, double streamTime, RtAudioStreamStatus status, void *data)
 

Public Attributes

fftfourierObj
 
vocodervocoderObj
 
VocodervocoderObj
 
double fftAudioIn [512]
 
fftw_complex * fftSpectrum
 
double * fftInverseOut
 
std::string currentNote
 

Detailed Description

This class handles the callback functionality from RtAudio.

Dispatch objects are used to collect the processing objects used (<fft.h> and <vocoder.h>) and utilise them to process the audio data from RtAudio by implementing a method compatable with the RtAudio callback format.


The documentation for this class was generated from the following files: