473,672 Members | 2,603 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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_secon d 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 2510
In article <11************ **********@h48g 2000cwc.googleg roups.com>,
<ma*******@gmai l.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************ **********@h48g 2000cwc.googleg roups.com>,
<ma*******@gmai l.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
1975
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"> <!-- hiding page=new Date(); if (page.getDate() == 1) document.write("<embed src='media/audio/waltzinblack.mp3' width='145'
2
6426
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
8129
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
1130
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 processes the response(s) when returned. I've got the following code written which generates the infamous 'Object Reference Not Set to an Instance of an Object error'. The error lies in this line of code (I've marked it with a ****** ******) in the...
2
2621
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 pretty pictures. (like windows media player visual plugins. I will be developing in C++ and was wondering if there are any packaged libraries out there that I can use to read audio files encoded in different formats and lets me easily access the...
6
5639
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 using waveIn and waveOut (from winmm.dll) but I would like to avoid messing with that low level stuff. I would prefer applying an encoder/decoder directly to the byte stream. Is it possible? How can I do it?
0
917
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 external library for opening and manipulating a JPG file. How come audio is deemed more important for the standard library than imaging?
3
3060
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
3884
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 almost no posts from the last 3 years: http://groups.google.com/group/comp.lang.javascript/search?group=comp.lang.javascript&q=how+to+play+a+sound+with+Javascript&qt_g=Search+this+group Even after sorting by date, there don't appear any...
0
8404
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8828
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8608
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8680
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7446
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6238
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5705
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
2
2063
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1816
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.