Jump to content
  • Advertisement

Archived

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

Ruudje

Sound

This topic is 5319 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

Lets say for a moment that I would not like to use directsound or fmod or whatever. How would I be able to mix my own sounds and send them to the soundcard?

Share this post


Link to post
Share on other sites
Advertisement
For mixing and playing? I thought those were used for loading only... (But im not asking about loading here)

Share this post


Link to post
Share on other sites
I''m not sure about this, but you could use OpenAL. It might (again, I''m not sure) build on top of DirectSound in Windows, but it''s platform-independent.

cya,
Drag0n

-----------------------------
"Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to build bigger and better idiots. So far, the universe is winning..." -- Rich Cook

My future web presence: Dave''s Programming Resources

Share this post


Link to post
Share on other sites
Also, there are no API functions explicitly used for mixing audio data. That is something you have to do yourself. The API mixer functions are only for adjusting the sound card''s channel volumes, i.e. wave volume, midi volume, etc.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
add the samples together, wtf.

Share this post


Link to post
Share on other sites
Ruudje, you have to use the multimedia API''s. The mixed samples can''t magically appear on the sound card. Also, the samples you mix obviously need to be in the same format, and so again would need to use the multimedia API''s to get the samples in the same format (unless you limit all your resources to a single PCM format, which would be quite stupid). Mixing can be as simple as adding and clipping the added samples. What''s so hard about that?

Share this post


Link to post
Share on other sites
well someone said to me I have to go through the windows drivers to do it... but that doesnt really tell me much. cant find any info on it.

and AP: by mixing I mean 2 sounds playing e.g. at the same time, backgroundmusic and soundeffects, not 2 samples playing directly after each other.

Share this post


Link to post
Share on other sites

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!