Lines Matching defs:hw
33 HWVoiceOut hw;
38 HWVoiceIn hw;
42 static int no_run_out (HWVoiceOut *hw)
44 NoVoiceOut *no = (NoVoiceOut *) hw;
50 live = audio_pcm_hw_get_live_out (&no->hw);
60 samples = (int)((2 * ticks * hw->info.freq + ticks_per_second) / ticks_per_second / 2);
71 hw->rpos = (hw->rpos + decr) % hw->samples;
80 static int no_init_out (HWVoiceOut *hw, audsettings_t *as)
82 audio_pcm_init_info (&hw->info, as);
83 hw->samples = 1024;
87 static void no_fini_out (HWVoiceOut *hw)
89 (void) hw;
92 static int no_ctl_out (HWVoiceOut *hw, int cmd, ...)
94 (void) hw;
99 static int no_init_in (HWVoiceIn *hw, audsettings_t *as)
101 audio_pcm_init_info (&hw->info, as);
102 hw->samples = 1024;
106 static void no_fini_in (HWVoiceIn *hw)
108 (void) hw;
111 static int no_run_in (HWVoiceIn *hw)
113 NoVoiceIn *no = (NoVoiceIn *) hw;
114 int live = audio_pcm_hw_get_live_in (hw);
115 int dead = hw->samples - live;
121 int64_t bytes = (ticks * hw->info.bytes_per_second)
126 samples = bytes >> hw->info.shift;
128 hw->wpos = (hw->wpos + samples) % hw->samples;
138 static int no_ctl_in (HWVoiceIn *hw, int cmd, ...)
140 (void) hw;