Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

how use sound cards?

Status
Not open for further replies.

SirShahzad

Instructor
Jan 23, 2001
9
0
0
FR
how can we use sound cards in C or C++ programs. for wave filles or games etc.
 
Well, you should use some low level C functions like outp and inp (out port and in port) along with the documentation of the specific soundcard.

Usually you write some data on some specified port (outp) to request some information -inp- (alot of "some's")... In this way you can obtain the input-output range, the usable IRQs and DMAs.


Of course, this is usable in non-windows applications, as far as i know. If you're using WinAPI, there are specific functions to play a wave file which will spare you of all the work in finding out the above parameters.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top