79 |
WAVEFORMATEX *format; |
WAVEFORMATEX *format; |
80 |
STREAM out; |
STREAM out; |
81 |
BOOL device_available = False; |
BOOL device_available = False; |
82 |
|
int readcnt; |
83 |
|
int discardcnt; |
84 |
|
|
85 |
in_uint8s(in, 14); /* flags, volume, pitch, UDP port */ |
in_uint8s(in, 14); /* flags, volume, pitch, UDP port */ |
86 |
in_uint16_le(in, in_format_count); |
in_uint16_le(in, in_format_count); |
107 |
in_uint16_le(in, format->cbSize); |
in_uint16_le(in, format->cbSize); |
108 |
|
|
109 |
/* read in the buffer of unknown use */ |
/* read in the buffer of unknown use */ |
110 |
int readcnt = format->cbSize; |
readcnt = format->cbSize; |
111 |
int discardcnt = 0; |
discardcnt = 0; |
112 |
if (format->cbSize > MAX_CBSIZE) |
if (format->cbSize > MAX_CBSIZE) |
113 |
{ |
{ |
114 |
fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize); |
fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize); |