From: Stas Sergeev <stssppnn@yahoo.com>
To: linux-msdos@vger.kernel.org
Subject: Re: Sound problem in dosemu 1.1.4
Date: Sat, 04 Jan 2003 12:15:12 +0300 [thread overview]
Message-ID: <3E16A620.7000801@yahoo.com> (raw)
[-- Attachment #1: Type: text/plain, Size: 302 bytes --]
Hello.
Thomas Pallmann wrote:
> I'm using the sourceforge vortex driver for my
> Terratec Xlerate (aureal chipset).
Please fix your buggy aureal drivers.
The attached patch will help you to
start doing that.
Third-party drivers are not supported
by dosemu anymore (except the PCSP driver
of course:)
[-- Attachment #2: au_audio.diff --]
[-- Type: text/plain, Size: 1028 bytes --]
--- au_audio.c.old Thu Jan 31 00:20:16 2002
+++ au_audio.c Tue Mar 5 04:34:04 2002
@@ -361,14 +361,13 @@
if(!wdev->play_stream.wave)
return -EINVAL;
PSHOW("au_audio_ioctl() : DSP_POST\n");
- drain_playback(dev, wdev, (file->f_flags & O_NONBLOCK));
- stop_wave(dev, &(wdev->play_stream));
+ drain_playback(dev, wdev, 1);
return SUCCESS;
case SNDCTL_DSP_SYNC:
if (wdev->play_stream.wave) {
PSHOW("au_audio_ioctl() : DSP_SYNC\n");
- drain_playback(dev, wdev, (file->f_flags & O_NONBLOCK));
+ drain_playback(dev, wdev, 0);
stop_wave(dev, &(wdev->play_stream));
}
if (wdev->record_stream.wave)
@@ -709,6 +708,9 @@
spin_lock_irqsave(&dev->irq_lock,flags);
AddWaveBuffer(wdev->play_stream.wave, mb->page, mb->count);
spin_unlock_irqrestore(&dev->irq_lock,flags);
+ wdev->play_stream.fill_index++;
+ if(wdev->play_stream.fill_index >= wdev->play_stream.num_frags)
+ wdev->play_stream.fill_index = 0;
}
while (wdev->play_stream.total_played < wdev->play_stream.total_sent) {
next reply other threads:[~2003-01-04 9:15 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-01-04 9:15 Stas Sergeev [this message]
-- strict thread matches above, loose matches on Subject: below --
2003-01-03 21:16 Sound problem in dosemu 1.1.4 Thomas Pallmann
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=3E16A620.7000801@yahoo.com \
--to=stssppnn@yahoo.com \
--cc=linux-msdos@vger.kernel.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