28 |
#include <sys/time.h> |
#include <sys/time.h> |
29 |
|
|
30 |
#define MAX_QUEUE 10 |
#define MAX_QUEUE 10 |
31 |
#define WAVEOUTBUF 64 |
#define WAVEOUTBUF 16 |
32 |
|
|
33 |
int g_dsp_fd; |
int g_dsp_fd; |
34 |
ao_device *o_device = NULL; |
ao_device *o_device = NULL; |
175 |
{ |
{ |
176 |
struct audio_packet *packet; |
struct audio_packet *packet; |
177 |
STREAM out; |
STREAM out; |
178 |
unsigned char outbuf[WAVEOUTBUF]; |
char outbuf[WAVEOUTBUF]; |
179 |
int offset, len, i; |
int offset, len, i; |
180 |
static long prev_s, prev_us; |
static long prev_s, prev_us; |
181 |
unsigned int duration; |
unsigned int duration; |