23 |
*/ |
*/ |
24 |
#include "vl.h" |
#include "vl.h" |
25 |
|
|
26 |
#define AUDIO_CAP "wav" |
#include "audio/audio_int.h" |
27 |
#include "audio/audio.h" |
|
28 |
#include "audio/wavaudio.h" |
typedef struct WAVVoice { |
29 |
|
HWVoice hw; |
30 |
|
QEMUFile *f; |
31 |
|
int64_t old_ticks; |
32 |
|
void *pcm_buf; |
33 |
|
int total_samples; |
34 |
|
} WAVVoice; |
35 |
|
|
36 |
|
#define dolog(...) AUD_log ("wav", __VA_ARGS__) |
37 |
|
#ifdef DEBUG |
38 |
|
#define ldebug(...) dolog (__VA_ARGS__) |
39 |
|
#else |
40 |
|
#define ldebug(...) |
41 |
|
#endif |
42 |
|
|
43 |
static struct { |
static struct { |
44 |
const char *wav_path; |
const char *wav_path; |