furnace/src/audio/abstract.cpp

34 lines
689 B
C++
Raw Normal View History

#include "taAudio.h"
void TAAudio::setSampleRateChangeCallback(void (*callback)(SampleRateChangeEvent)) {
sampleRateChanged=callback;
}
void TAAudio::setBufferSizeChangeCallback(void (*callback)(BufferSizeChangeEvent)) {
bufferSizeChanged=callback;
}
void TAAudio::setCallback(void (*callback)(void*,float**,float**,int,int,unsigned int), void* user) {
audioProcCallback=callback;
audioProcCallbackUser=user;
}
void* TAAudio::getContext() {
return NULL;
}
bool TAAudio::quit() {
return true;
}
bool TAAudio::setRun(bool run) {
running=run;
return running;
}
bool TAAudio::init(TAAudioDesc& request, TAAudioDesc& response) {
return false;
}
TAAudio::~TAAudio() {
}