2021-05-11 16:08:08 -04:00
|
|
|
#include "taAudio.h"
|
2021-05-28 16:25:55 -04:00
|
|
|
#include <SDL.h>
|
2021-05-11 16:08:08 -04:00
|
|
|
|
|
|
|
class TAAudioSDL: public TAAudio {
|
|
|
|
SDL_AudioSpec ac, ar;
|
|
|
|
SDL_AudioDeviceID ai;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void onProcess(unsigned char* buf, int nframes);
|
|
|
|
|
|
|
|
void* getContext();
|
|
|
|
bool quit();
|
|
|
|
bool setRun(bool run);
|
|
|
|
bool init(TAAudioDesc& request, TAAudioDesc& response);
|
|
|
|
};
|