XAudio2: Set music volume

For questions about using Classic.

Post » Wed Nov 24, 2010 6:28 pm

What does the range 0 to 100 mean here? (What units are being used here?)
What value in this range corresponds to the sound file being played at its original volume?
Also, how do you access this particular variable using syntax? (XAudio2.??)
Thanks.
B
5
S
1
G
3
Posts: 59
Reputation: 993

Post » Wed Nov 24, 2010 6:51 pm

[quote="pooiyx":3fguqril]What does the range 0 to 100 mean here? (What units are being used here?)
What value in this range corresponds to the sound file being played at its original volume?
Also, how do you access this particular variable using syntax? (XAudio2.??)
Thanks.[/quote:3fguqril]
It's a percentage value. 100% should match 0 dB and 0% should match -inf dB. Original volume always is 0 dB, so 100% = original volume.

Sadly there's only a setter for music volume, no getter. You have to create a pv or global and store/change the value there, then set the music volume to that pv/global.
Image
B
23
S
8
G
10
Posts: 1,820
Reputation: 8,242


Return to Help & Support using Construct Classic

Who is online

Users browsing this forum: No registered users and 2 guests