blob: a49418d516ba4adc3bb705584b2a728d1fe62ef3 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
#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);
int audio_done(void);
int dir_exist(const char* p);
int make_dir(const char* p);
#endif
|