From: "munkyu.im" <munkyu.im@samsung.com>
To: qemu-devel@nongnu.org
Cc: "munkyu.im" <munkyu.im@samsung.com>
Subject: [Qemu-devel] [PATCH] audio: previous audio buffer should be flushed
Date: Mon, 27 Aug 2012 19:53:33 +0900 [thread overview]
Message-ID: <1346064813-6856-2-git-send-email-munkyu.im@samsung.com> (raw)
In-Reply-To: <1346064813-6856-1-git-send-email-munkyu.im@samsung.com>
Buffer must be flushed when audio out is paused, but Winwave audio backend has problem with this unlike other backends.
As a result, when user stop and restart audio files or something, the previous audio data are played in front of user expected sound.
So changes it to waveOutReset()
---
audio/winwaveaudio.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/audio/winwaveaudio.c b/audio/winwaveaudio.c
index 663abb9..7de12a6 100644
--- a/audio/winwaveaudio.c
+++ b/audio/winwaveaudio.c
@@ -361,9 +361,9 @@ static int winwave_ctl_out (HWVoiceOut *hw, int cmd, ...)
case VOICE_DISABLE:
if (!wave->paused) {
- mr = waveOutPause (wave->hwo);
+ mr = waveOutReset (wave->hwo);
if (mr != MMSYSERR_NOERROR) {
- winwave_logerr (mr, "waveOutPause");
+ winwave_logerr (mr, "waveOutReset");
}
else {
wave->paused = 1;
--
1.7.4.1
next prev parent reply other threads:[~2012-08-27 10:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-27 10:53 [Qemu-devel] [PATCH] audio: previous audio buffer should be flushed munkyu.im
2012-08-27 10:53 ` munkyu.im [this message]
-- strict thread matches above, loose matches on Subject: below --
2012-08-28 7:42 [Qemu-devel] [PATCH]] " munkyu.im
2012-08-28 15:12 ` malc
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1346064813-6856-2-git-send-email-munkyu.im@samsung.com \
--to=munkyu.im@samsung.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).