mmdevapi: Use UINT32 for a number of frames and UINT64 to sum them.
This commit is contained in:
parent
1c1da3e596
commit
08dd823c7c
|
@ -108,8 +108,8 @@ struct ACImpl {
|
||||||
float *vols;
|
float *vols;
|
||||||
|
|
||||||
BOOL initted, started;
|
BOOL initted, started;
|
||||||
UINT64 written_frames, held_frames, tmp_buffer_frames;
|
UINT64 written_frames;
|
||||||
UINT32 bufsize_frames, period_us;
|
UINT32 bufsize_frames, held_frames, tmp_buffer_frames, period_us;
|
||||||
UINT32 lcl_offs_frames; /* offs into local_buffer where valid data starts */
|
UINT32 lcl_offs_frames; /* offs into local_buffer where valid data starts */
|
||||||
|
|
||||||
HANDLE timer;
|
HANDLE timer;
|
||||||
|
|
|
@ -124,8 +124,8 @@ struct ACImpl {
|
||||||
AudioQueueRef aqueue;
|
AudioQueueRef aqueue;
|
||||||
AudioObjectPropertyScope scope;
|
AudioObjectPropertyScope scope;
|
||||||
HANDLE timer;
|
HANDLE timer;
|
||||||
UINT32 period_ms, bufsize_frames, inbuf_frames, written_frames;
|
UINT32 period_ms, bufsize_frames, inbuf_frames;
|
||||||
UINT64 last_time;
|
UINT64 last_time, written_frames;
|
||||||
AudioQueueBufferRef public_buffer;
|
AudioQueueBufferRef public_buffer;
|
||||||
UINT32 getbuf_last;
|
UINT32 getbuf_last;
|
||||||
int playing;
|
int playing;
|
||||||
|
|
|
@ -121,8 +121,8 @@ struct ACImpl {
|
||||||
oss_audioinfo ai;
|
oss_audioinfo ai;
|
||||||
|
|
||||||
BOOL initted, playing;
|
BOOL initted, playing;
|
||||||
UINT64 written_frames, held_frames, tmp_buffer_frames, inbuf_frames;
|
UINT64 written_frames;
|
||||||
UINT32 period_us, bufsize_frames;
|
UINT32 period_us, bufsize_frames, held_frames, tmp_buffer_frames, inbuf_frames;
|
||||||
UINT32 lcl_offs_frames; /* offs into local_buffer where valid data starts */
|
UINT32 lcl_offs_frames; /* offs into local_buffer where valid data starts */
|
||||||
|
|
||||||
BYTE *local_buffer, *tmp_buffer;
|
BYTE *local_buffer, *tmp_buffer;
|
||||||
|
|
Loading…
Reference in New Issue