SOUNDCARD problem

How I can read the data from the soundcard directly ,using C language.  
kadhimAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
sumant032199Connect With a Mentor Commented:
Don't go for Turbo C++ compiler for this HUGE STUFF. Instead of that, if your only criterian is C language then I would suggest you to use DJGPP compiler (32 bit)V2.0 which is readily available at www.delorie.com for free.

There is a large collection of programs
and libraries,one of them is ALLEGRO is a wonderful way of interfacing sound card in C. It comprises of stunning graphics and easy interface. ALLEGRO means ALLEGRO Low LEvel Game ROutines.

If you are ready to switch from Turbo C to DJGPP then this is the solution you need.
0
 
kadhimAuthor Commented:
Edited text of question.
0
 
fmaritatoCommented:
try talking directly to the port on the board. Look at the help for the following functions: _outp and _inp. Here is a url:
http://msdn.microsoft.com/library/devprods/vs6/visualc/vccore/_crt__inp.2c_._inpw.2c_._inpd.htm
0
Live webcast with Pinal Dave

Pinal Dave will teach you tricks to help identify the real root cause of database problems rather than red herrings. Attendees will learn scripts that they can use in their environment to immediately figure out their performance Blame Shifters and fix them quickly.

 
kadhimAuthor Commented:
I know about following functions: _outp and _inp.But I need to port address of the soundcard (how can I get it?)
0
 
kadhimAuthor Commented:
I know about following functions: _outp and _inp.But I need to port address of the soundcard (how can I get it?)
0
 
SlartiCommented:
kadhim,
are you sure you want to do this? what you are describing is the (19)80's way of programming sound cards. It is not compatible with other sound cards and it is a lot of work. A much better way, if you are using Windows, is to use the Windows multimedia library which provides a simple, device-independant method of accessing sound cards. In fact, in my opinion this reason in itself is sufficient reason to transfer your project to Windows.
0
All Courses

From novice to tech pro — start learning today.