Lines Matching refs:convert_samples
87 int convert_samples = audio_MIN (samples, left_till_end_samples); in wav_out_run() local
92 hw->clip (dst, src, convert_samples); in wav_out_run()
93 qemu_put_buffer (wav->f, dst, convert_samples << hw->info.shift); in wav_out_run()
95 rpos = (rpos + convert_samples) % hw->samples; in wav_out_run()
96 samples -= convert_samples; in wav_out_run()
97 wav->total_samples += convert_samples; in wav_out_run()
380 int convert_samples = audio_MIN (samples, left_till_end_samples); in wav_in_run() local
385 qemu_get_buffer (wav->f, src, convert_samples << hw->info.shift); in wav_in_run()
386 memcpy (dst, src, convert_samples << hw->info.shift); in wav_in_run()
388 wpos = (wpos + convert_samples) % hw->samples; in wav_in_run()
389 samples -= convert_samples; in wav_in_run()
390 wav->total_samples += convert_samples; in wav_in_run()