Mail Archives: djgpp/2006/08/24/08:03:32

X-Authentication-Warning: mail set sender to djgpp-bounces using -f
From: martoncho AT gmail DOT com
Newsgroups: comp.os.msdos.djgpp
Subject: Need help with audio library
Date: 24 Aug 2006 04:52:16 -0700
Lines: 39
Message-ID: <>
Mime-Version: 1.0
X-Trace: 1156420340 7056 (24 Aug 2006 11:52:20 GMT)
X-Complaints-To: groups-abuse AT google DOT com
NNTP-Posting-Date: Thu, 24 Aug 2006 11:52:20 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows 98),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse AT google DOT com
Injection-Info:; posting-host=;
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp
Reply-To: djgpp AT delorie DOT com

Hi all,

I am facing what is for me a really complicated situation. I program C
but not this advanced (I mean direct hardware access etc).
Here is the background:
I am using DJGPP.
I am programming a DOS program that will play wave files on certain
functions (moving through the menus, running functions, etc)
Today's motherboards come with AC97 sound boards that do not have
drivers compatible with DOS.
MAME (a videogame emulator) does have a library that uses the AC97
boards with no problems. It is named WSS and is made by Shigeaki
Sakamaki (the email address of the author is unknown)
I managed to make a standalone DOS wav player using the library. It
works perfectly.
I like to add the WSS library to the SEAL Audio library, which is
another neat audio library that also has a mixer, filters and etc, and
has functions for everything I need on my program. SEAL is here:
Here comes my problem:
I added WSS to the SEAL library and it sounds, but SLOWLY, it looks as
it is taking 100% of the CPU, and returns control to my program when it

wants. The main functions are easy: openaudio for detecting and
initializing the board (this one works great) and updateaudio which is
called every clock_per_second from my program.
Updateaudio is the issue here. I made a neat package with everything
I'm using, and some examples, like the standalone player, my
partially-working driver for SEAL and the driver I derived my work
from, and the MAME code that makes use of WSS and has a working
updateaudio function through it. Everything is commented and has a
description. I've been stuck and fighting with this for more than a
week and I'm on the point of needing help desperatedly. I can pay for
the time needed to look at it and to point me in the right direction.
Any help will be more than appreciated.

Package is here: (85kb)

- Raw text -

  webmaster     delorie software   privacy  
  Copyright 2019   by DJ Delorie     Updated Jul 2019