Archived

This topic is now archived and is closed to further replies.

Making sound

This topic is 5172 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

is there any way to emit a sound at a specific frequency in C with the default libraries (meaning without an API)? or am i doomed to use directX example: play a note at 3300 hz _________________________________________ "Why, why why does everyone ask ''''why'''' when ''''how'''' is so much more fun" -Spawn 1997

Share this post


Link to post
Share on other sites
No, there is nothing in the standard library for sound generation. There are various libraries available that will do what you want. You don''t have to use DirectX if you don''t want to.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
quote:
Original post by Infuscare
is there any way to emit a sound at a specific frequency in C with the default libraries (meaning without an API)? or am i doomed to use directX

example: play a note at 3300 hz

_________________________________________
"Why, why why does everyone ask ''why'' when ''how'' is so much more fun"
-Spawn 1997



As a previous post said there isn''t anyway to do it with out a library. <a href="http://www.allegro.cc">Allegro</a> has some fairly straight forward functions for doing it if you don''t want to use DirectX

Share this post


Link to post
Share on other sites
Fmod is also pretty popular, and is free for non-commercial use. It's incredibly easy to understand, partially because it is very well documented. Recommended =)

[edited by - Enokh on October 17, 2003 2:11:51 AM]

Share this post


Link to post
Share on other sites
OpenAL (www.openal.org) looks pretty nice as well, haven''t tried it yet but im going to use it in a university project, and several big games seems to be using it.

Share this post


Link to post
Share on other sites