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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Audio output in console..? how

Status
Not open for further replies.

zemic

Programmer
Jan 4, 2005
6
DK
Hi, im gonna make a program, and i need to play audio in it, its only a compiled as a console, and i wanna do it mulit function thing? how to do that. Like when i do it its get some with cin and so its play the audio...
 
Hi,
I'm not exactly sure what you want to do but I know that API

sndPlaySound(...) works in console mode.

Don't forget to include mmsystem.h .

Hope this helps.

Pappy
You learn something new everyday.
 
sndPlaySound is an MS thing, yes? This wouldn't apply to *nix machines if I am right. Is there a POSIX sound library to play WAV and/or midi files?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top