This commit is contained in:
Andrew Gundersen 2021-08-13 14:55:14 -05:00
commit d32989cc81
135 changed files with 17183 additions and 669 deletions

25
src/na_core.h Normal file
View file

@ -0,0 +1,25 @@
#ifndef NA_CORE
#define NA_CORE
typedef struct
{
size_t len;
void* data;
}
playback_data;
PaError Na_Initialize(napi_env env, napi_value* js_cb);
PaError Na_GetDefaultInputDevice(PaDeviceIndex* deviceIndex);
PaError Na_GetDefaultOutputDevice(PaDeviceIndex* deviceIndex);
PaError Na_OpenInputStream(int deviceIndex);
PaError Na_OpenOutputStream(int deviceIndex);
void Na_WriteToOutputBuffer(void* data, size_t size);
PaError Na_Terminate();
#endif