-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathm1sdr.h
39 lines (32 loc) · 810 Bytes
/
m1sdr.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
/*
* Audio Overload SDK
*
* Audio backend function declarations
*/
#ifndef M1SDR_H
#define M1SDR_H
typedef enum {
M1SDR_OK,
M1SDR_ERROR,
M1SDR_WAIT
} m1sdr_ret_t;
typedef void m1sdr_callback_t(
unsigned long sample_count, stereo_sample_t *buffer
);
extern m1sdr_callback_t *m1sdr_Callback;
extern ao_bool hw_present;
// Shared and implemented in m1sdr.c
void m1sdr_SetCallback(m1sdr_callback_t *function);
ao_bool m1sdr_HwPresent(void);
// Backend-specific
INT16 m1sdr_Init(char *device, int sample_rate);
void m1sdr_PrintDevices(void);
void m1sdr_Exit(void);
void m1sdr_PlayStart(void);
void m1sdr_PlayStop(void);
m1sdr_ret_t m1sdr_TimeCheck(void);
void m1sdr_SetSamplesPerTick(UINT32 spf);
void m1sdr_FlushAudio(void);
void m1sdr_Pause(int);
void m1sdr_SetNoWait(int nw);
#endif /* M1SDR_H */