windows support

This commit is contained in:
Nishi 2025-11-25 11:08:13 +09:00
commit b9004acd79
Signed by: nishi
GPG key ID: 27EF69B208EB9343
16 changed files with 208 additions and 32 deletions

View file

@ -8,7 +8,7 @@ typedef struct driver_context {
snd_pcm_hw_params_t* params;
} driver_context_t;
#include "pthread/decl.c"
#include "thread/decl.c"
static void drv_write(driver_t* drv, void* data, int frames) {
if(snd_pcm_writei(drv->context.device, data, frames) == -EPIPE) {
@ -72,5 +72,5 @@ static void drv_close(driver_t* drv) {
}
}
#include "pthread/body.c"
#include "thread/body.c"
#endif