
took me a day to make the base... ...and ~12 hours to write a reader that reads 100% of all demo songs in 1.0
30 lines
616 B
C++
30 lines
616 B
C++
#include "taAudio.h"
|
|
|
|
void TAAudio::setSampleRateChangeCallback(void (*callback)(SampleRateChangeEvent)) {
|
|
sampleRateChanged=callback;
|
|
}
|
|
|
|
void TAAudio::setBufferSizeChangeCallback(void (*callback)(BufferSizeChangeEvent)) {
|
|
bufferSizeChanged=callback;
|
|
}
|
|
|
|
void TAAudio::setCallback(void (*callback)(float**,float**,int,int,unsigned int)) {
|
|
audioProcCallback=callback;
|
|
}
|
|
|
|
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;
|
|
} |