* [Qemu-devel] [PATCH] noaudio: fix return value for read()
@ 2010-12-08 23:34 Michael Walle
2010-12-10 2:29 ` malc
0 siblings, 1 reply; 2+ messages in thread
From: Michael Walle @ 2010-12-08 23:34 UTC (permalink / raw)
To: qemu-devel; +Cc: Michael Walle
Read should return bytes instead of samples.
Signed-off-by: Michael Walle <michael@walle.cc>
---
audio/noaudio.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/audio/noaudio.c b/audio/noaudio.c
index 4925234..8015858 100644
--- a/audio/noaudio.c
+++ b/audio/noaudio.c
@@ -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, ...)
--
1.7.2.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [Qemu-devel] [PATCH] noaudio: fix return value for read()
2010-12-08 23:34 [Qemu-devel] [PATCH] noaudio: fix return value for read() Michael Walle
@ 2010-12-10 2:29 ` malc
0 siblings, 0 replies; 2+ messages in thread
From: malc @ 2010-12-10 2:29 UTC (permalink / raw)
To: Michael Walle; +Cc: qemu-devel
On Thu, 9 Dec 2010, Michael Walle wrote:
> Read should return bytes instead of samples.
Thanks, applied.
[..snip..]
--
mailto:av1474@comtv.ru
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2010-12-10 2:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-08 23:34 [Qemu-devel] [PATCH] noaudio: fix return value for read() Michael Walle
2010-12-10 2:29 ` malc
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.