![]() |
| [[ Home | Forums | 3D Engines Database | Wiki | Articles/Tutorials | Game Dev Jobs | IRC Chat Network | Contact Us ]] |
|
|
#1 |
|
New Member
Join Date: Mar 2004
Posts: 4
|
Hiya all... I am quite new to OpenAL, I've been through the tutorials but havent noticed any way to control the volume of the source without having to use the fading effect.
Is there any way to control volume per source in OpenAL at all? Thanks. |
|
|
|
|
|
#2 |
|
Senior Member
Join Date: Jan 2003
Location: ON, Canada
Posts: 524
|
I'm not the person to ask, but in the meanwhile, I found this site for you:
http://www.jcabs-rumblings.com/OpenALFeatures.html It talks about the volume control issue. I hope it helps
___________________________________________
"What ever happened to happily ever after?" |
|
|
|
|
|
#3 |
|
Valued Member
Join Date: Jan 2004
Location: England
Posts: 265
|
In OpenAL gain means volume. So you have to change the AL_GAIN state to change the volume of a source (you can't change the volume of a buffer as far as I have seen, and it seems strange why you would).
So Code:
You can set a value of higher than 1.0f, which will (on some cards i think) increase the volume of the source past the volume of the buffer applied to it. Hope that helps Spree |
|
|
|
|
|
#4 |
|
New Member
Join Date: Mar 2004
Posts: 4
|
Ok thanks alot for the replies...
I was kinda expecting something like alSetVolume(Source, Volume level) or something ![]() |
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|