Lines Matching refs:hw
91 HWVoiceOut hw; member
128 winaudio_out_fini (HWVoiceOut *hw) in winaudio_out_fini() argument
130 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_fini()
159 winaudio_out_init (HWVoiceOut *hw, struct audsettings *as) in winaudio_out_init() argument
161 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_init()
199 (DWORD_PTR)winaudio_out_buffer_done, (DWORD_PTR) hw, in winaudio_out_init()
242 audio_pcm_init_info (&hw->info, as); in winaudio_out_init()
243 hw->samples = conf.nb_samples*2; in winaudio_out_init()
254 winaudio_out_run (HWVoiceOut *hw, int live) in winaudio_out_run() argument
256 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_run()
272 int wav_samples = audio_MIN(wav_bytes >> hw->info.shift, live); in winaudio_out_run()
273 int hw_samples = audio_MIN(hw->samples - hw->rpos, live); in winaudio_out_run()
274 struct st_sample* src = hw->mix_buf + hw->rpos; in winaudio_out_run()
281 wav_bytes = wav_samples << hw->info.shift; in winaudio_out_run()
285 hw->clip (dst, src, wav_samples); in winaudio_out_run()
286 hw->rpos += wav_samples; in winaudio_out_run()
287 if (hw->rpos >= hw->samples) in winaudio_out_run()
288 hw->rpos -= hw->samples; in winaudio_out_run()
321 winaudio_out_ctl (HWVoiceOut *hw, int cmd, ...) in winaudio_out_ctl() argument
323 WinAudioOut* s = (WinAudioOut*) hw; in winaudio_out_ctl()
343 HWVoiceIn hw; member
374 winaudio_in_fini (HWVoiceIn *hw) in winaudio_in_fini() argument
376 WinAudioIn* s = (WinAudioIn*) hw; in winaudio_in_fini()
405 winaudio_in_init (HWVoiceIn *hw, struct audsettings *as) in winaudio_in_init() argument
407 WinAudioIn* s = (WinAudioIn*) hw; in winaudio_in_init()
443 (DWORD_PTR)winaudio_in_buffer_done, (DWORD_PTR) hw, in winaudio_in_init()
493 audio_pcm_init_info (&hw->info, as); in winaudio_in_init()
494 hw->samples = conf.nb_samples*2; in winaudio_in_init()
506 winaudio_in_run (HWVoiceIn *hw) in winaudio_in_run() argument
508 WinAudioIn* s = (WinAudioIn*) hw; in winaudio_in_run()
511 int live = hw->samples - hw->total_samples_captured; in winaudio_in_run()
532 int wav_samples = audio_MIN(wav_bytes >> hw->info.shift, live); in winaudio_in_run()
533 int hw_samples = audio_MIN(hw->samples - hw->wpos, live); in winaudio_in_run()
534 struct st_sample* dst = hw->conv_buf + hw->wpos; in winaudio_in_run()
541 wav_bytes = wav_samples << hw->info.shift; in winaudio_in_run()
545 hw->wpos, hw->samples); in winaudio_in_run()
547 hw->conv(dst, src, wav_samples, &nominal_volume); in winaudio_in_run()
549 hw->wpos += wav_samples; in winaudio_in_run()
550 if (hw->wpos >= hw->samples) in winaudio_in_run()
551 hw->wpos -= hw->samples; in winaudio_in_run()
587 winaudio_in_ctl (HWVoiceIn *hw, int cmd, ...) in winaudio_in_ctl() argument
589 WinAudioIn* s = (WinAudioIn*) hw; in winaudio_in_ctl()