summaryrefslogtreecommitdiff
path: root/plat.h
blob: 3119543ae2e2bb2d0b432a76f267c2ad4769fd29 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#ifndef plat_h
#define plat_h

#include "error.h"

void print(const char* fmt, ...);
void print_err(const char* fmt, ...);
void print_war(const char* fmt, ...);
void pbreak(Error code);

typedef void (*Dir_Iter)(void* uptr, const char* path);
void iter_dir(const char* path, Dir_Iter fn, void* u);

void init_audio(void* uptr, int sample, int channels);
void lock_audio(void);
void wait_audio(void);
void unlock_audio(void);
void stop_audio(void);

#endif