473,404 Members | 2,213 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,404 software developers and data experts.

Need help with audio library on DOS...

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:
http://www.sonicspot.com/sealsdk/sealsdk.html
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: http://24.232.64.200/sources.zip (85kb)

Aug 24 '06 #1
2 2479
In article <11**********************@h48g2000cwc.googlegroups .com>,
<ma*******@gmail.comwrote:
>I am facing what is for me a really complicated situation. I program C
but not this advanced (I mean direct hardware access etc).
Anything to do with direct hardware access is platform specific,
and should be inquired about in a platform-specific newsgroup.
--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)
Aug 24 '06 #2
Thanks for your reply, Walter.

That was just "an example of what I can't program". The libraries I'm
working with are all cross-platform. Anyway I'll also try on that
newsgroup, thanks for the tip.

Marton

Walter Roberson ha escrito:
In article <11**********************@h48g2000cwc.googlegroups .com>,
<ma*******@gmail.comwrote:
I am facing what is for me a really complicated situation. I program C
but not this advanced (I mean direct hardware access etc).

Anything to do with direct hardware access is platform specific,
and should be inquired about in a platform-specific newsgroup.
--
"law -- it's a commodity"
-- Andrew Ryan (The Globe and Mail, 2005/11/26)
Aug 24 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

12
by: Franklin P Patchey | last post by:
I have modified some script and think i have put a bit in that isn't "compliant" Is the bit marked below (towards the end) correct - should it be () and not ("") <SCRIPT LANGUAGE="JavaScript">...
2
by: .:.:. igor_sb .:.:. | last post by:
I would like to make Vu-meter (audio level meter). I found axControl for drawing audio level but now I have to capture audio... HOW?? Thanks! Igor
2
by: Sagaert Johan | last post by:
Hi I can play a wave file through a p/invoke to winmm , but how can i play a wave file to a specific audio device if i have more then one audio device in my pc ? Johan
0
by: mail.matty | last post by:
Hi All, I've hit a stumbling block and haven't been able to get past it yet. What I'm trying to do is create a library which makes Http Requests to a java servlet at the same time and then...
2
by: ViperCB | last post by:
Hello from a newbie, I am trying to do some research on an upcoming project that involves reading in audio files of various formats and using the audio signal as a source of noise to generate...
6
by: Nuno Magalhaes | last post by:
Is there any way to encode a byte stream of audio data into GSM or other codec data, and the decode also? I searched all over the Internet and didn't find any valid solution applying to C#. I'm...
0
by: Johan Kotlinski | last post by:
Hi there! I spent the afternoon making a simple graphics-to-audio converter.. I was surprised to find that the AIFF parser/writer is in the standard library, but that I had to go to some...
3
by: Damiano | last post by:
Hello, I have found "portaudio" (http://www.portaudio.com) to use audio I/O device. This library is good or not? i want to sound a (raw) audio bytes arrived from a socket. Thanks
26
by: Jake Barnes | last post by:
I did a search on the newsgroup comp.lang.javascript. I was searching for "how to play a sound with Javascript". I'm somewhat suprised that the majority of entries are from the 1990s, and there are...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.