Lines Matching refs:format
252 RD_WAVEFORMATEX *format;
288 format = &formats[format_count];
289 in_uint16_le(in, format->wFormatTag);
290 in_uint16_le(in, format->nChannels);
291 in_uint32_le(in, format->nSamplesPerSec);
292 in_uint32_le(in, format->nAvgBytesPerSec);
293 in_uint16_le(in, format->nBlockAlign);
294 in_uint16_le(in, format->wBitsPerSample);
295 in_uint16_le(in, format->cbSize);
298 readcnt = format->cbSize;
300 if (format->cbSize > MAX_CBSIZE)
303 format->cbSize);
305 discardcnt = format->cbSize - MAX_CBSIZE;
307 in_uint8a(in, format->cb, readcnt);
310 if (current_driver && current_driver->wave_out_format_supported(format))
343 format = &formats[i];
344 out_uint16_le(out, format->wFormatTag);
345 out_uint16_le(out, format->nChannels);
346 out_uint32_le(out, format->nSamplesPerSec);
347 out_uint32_le(out, format->nAvgBytesPerSec);
348 out_uint16_le(out, format->nBlockAlign);
349 out_uint16_le(out, format->wBitsPerSample);
386 RD_WAVEFORMATEX *format;
421 format = &rec_formats[rec_format_count];
422 in_uint16_le(in, format->wFormatTag);
423 in_uint16_le(in, format->nChannels);
424 in_uint32_le(in, format->nSamplesPerSec);
425 in_uint32_le(in, format->nAvgBytesPerSec);
426 in_uint16_le(in, format->nBlockAlign);
427 in_uint16_le(in, format->wBitsPerSample);
428 in_uint16_le(in, format->cbSize);
431 readcnt = format->cbSize;
433 if (format->cbSize > MAX_CBSIZE)
436 format->cbSize);
438 discardcnt = format->cbSize - MAX_CBSIZE;
440 in_uint8a(in, format->cb, readcnt);
444 && current_driver->wave_in_format_supported(format))
461 format = &rec_formats[i];
462 out_uint16_le(out, format->wFormatTag);
463 out_uint16_le(out, format->nChannels);
464 out_uint32_le(out, format->nSamplesPerSec);
465 out_uint32_le(out, format->nAvgBytesPerSec);
466 out_uint16_le(out, format->nBlockAlign);
467 out_uint16_le(out, format->wBitsPerSample);
484 static uint16 tick, format;
491 in_uint16_le(s, format);
494 DEBUG_SOUND(("RDPSND: RDPSND_WRITE(tick: %u, format: %u, index: %u, data: %u bytes)\n", (unsigned) tick, (unsigned) format, (unsigned) packet_index, (unsigned) s->size - 8));
496 if (format >= MAX_FORMATS)
498 error("RDPSND: Invalid format index\n");
502 if (!device_open || (format != current_format))
519 if (!current_driver->wave_out_set_format(&formats[format]))
527 current_format = format;
558 in_uint16_le(s, format);
559 DEBUG_SOUND(("RDPSND: RDPSND_REC_START(format: %u)\n", (unsigned) format));
561 if (format >= MAX_FORMATS)
563 error("RDPSND: Invalid format index\n");
576 if (!current_driver->wave_in_set_format(&rec_formats[format]))
578 error("RDPSND: Device not accepting format\n");
582 rec_current_format = format;