Click to See Complete Forum and Search --> : Audio API


bovinedragon
September 3rd, 2007, 11:45 PM
Are there any winAPI that can mix sounds together. I have a game where i want a background music to play, and have random sound affects play over it. I am just using mmsystem.h and mciSendString to play one sound at a time. Is there a way to do this with just API or do i need to use a special lib like Directsound?

g3RC4n
September 4th, 2007, 10:12 PM
well PlaySound() doesn't do any mixing that i know of, and i don't know how to get two to play at once, but even if you did you'd be better off using openal or directsound for sound quality and performance anyway

bovinedragon
September 4th, 2007, 11:27 PM
well PlaySound() doesn't do any mixing that i know of, and i don't know how to get two to play at once, but even if you did you'd be better off using openal or directsound for sound quality and performance anyway

I have tried using openAL, but my system did not have the dll for it. I am hesitant to use it now since i am guessing that a lot of people wont have the dll just like me. Is openAL not that big of a lib that everyone has the dll? and im guessing that most systems would support directsound since it is a microsoft product?

Also just out of curiosity, is OpenGL related to OpenAL?

MrViggy
September 5th, 2007, 11:43 AM
I have tried using openAL, but my system did not have the dll for it. I am hesitant to use it now since i am guessing that a lot of people wont have the dll just like me. Is openAL not that big of a lib that everyone has the dll? and im guessing that most systems would support directsound since it is a microsoft product?

Also just out of curiosity, is OpenGL related to OpenAL?
Well, just deliver the DLL with you program. Also, just because DirectSound is part of the Microsoft DirectX package, there's no guarantee that your end users will have the correct version (read "DLL people may not have").

Viggy

g3RC4n
September 5th, 2007, 07:17 PM
opengl and openal are not the related as such, there both open source api projects, and as opengl is so popular, alot of simpler api's copy it's trend like openrt and openai.