initial commit
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
This commit is contained in:
commit
783d56c72a
26 changed files with 1660 additions and 0 deletions
26
src/audio/jack.h
Normal file
26
src/audio/jack.h
Normal file
|
|
@ -0,0 +1,26 @@
|
|||
#include "taAudio.h"
|
||||
#include <jack/jack.h>
|
||||
|
||||
class TAAudioJACK: public TAAudio {
|
||||
jack_client_t* ac;
|
||||
jack_port_t** ai;
|
||||
jack_port_t** ao;
|
||||
|
||||
float** iInBufs;
|
||||
float** iOutBufs;
|
||||
|
||||
public:
|
||||
void onSampleRate(jack_nframes_t rate);
|
||||
void onBufferSize(jack_nframes_t bufsize);
|
||||
void onProcess(jack_nframes_t nframes);
|
||||
|
||||
void* getContext();
|
||||
bool quit();
|
||||
bool setRun(bool run);
|
||||
bool init(TAAudioDesc& request, TAAudioDesc& response);
|
||||
|
||||
TAAudioJACK():
|
||||
ac(NULL),
|
||||
ai(NULL),
|
||||
ao(NULL) {}
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue