Skip to content
Snippets Groups Projects
Commit 85882c71 authored by Michael Walle's avatar Michael Walle Committed by malc
Browse files

noaudio: fix return value for read()


Read should return bytes instead of samples.

Signed-off-by: default avatarMichael Walle <michael@walle.cc>
Signed-off-by: default avatarmalc <av1474@comtv.ru>
parent 138b38b6
No related branches found
No related tags found
No related merge requests found
......@@ -121,7 +121,7 @@ static int no_read (SWVoiceIn *sw, void *buf, int size)
int total = sw->hw->total_samples_captured - sw->total_hw_samples_acquired;
int to_clear = audio_MIN (samples, total);
audio_pcm_info_clear_buf (&sw->info, buf, to_clear);
return to_clear;
return to_clear << sw->info.shift;
}
static int no_ctl_in (HWVoiceIn *hw, int cmd, ...)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment