104 |
in_uint16_le(in, format->wBitsPerSample); |
in_uint16_le(in, format->wBitsPerSample); |
105 |
in_uint16_le(in, format->cbSize); |
in_uint16_le(in, format->cbSize); |
106 |
|
|
107 |
|
/* read in the buffer of unknown use */ |
108 |
|
int readcnt = format->cbSize; |
109 |
|
int discardcnt = 0; |
110 |
|
if (format->cbSize > MAX_CBSIZE) |
111 |
|
{ |
112 |
|
fprintf(stderr, "cbSize too large for buffer: %d\n", format->cbSize); |
113 |
|
readcnt = MAX_CBSIZE; |
114 |
|
discardcnt = format->cbSize - MAX_CBSIZE; |
115 |
|
} |
116 |
|
in_uint8a(in, format->cb, readcnt); |
117 |
|
in_uint8s(in, discardcnt); |
118 |
|
|
119 |
if (device_available && wave_out_format_supported(format)) |
if (device_available && wave_out_format_supported(format)) |
120 |
{ |
{ |
121 |
format_count++; |
format_count++; |