Hi,

Probably everybody know that sound() function in C produces sound thru the PC speaker. I want to code a program in C to play sounds thru stereo speaker. I learnt that we need to make extensive use of ports. So whats the concept of ports? I also want to know whats the main difference in the concept of sound production thru PC magnetic speaker and that thru stereo speaker. Can anybody help in this case so that i can take a step further in develop a program to play music files? Please send atleast some links that have the answer or the material.

Thanks n Bye.

What platform are you developing on? Mac, Windows, Linux? All provide API's for playing sound out of your stero speakers.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.