Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Studio Chat / SetSoundInstanceVolume volume

Author
Message
ICERGB
22
Years of Service
User Offline
Joined: 8th Nov 2002
Location: Canada
Posted: 8th Apr 2024 14:38
So after much playing around to get sound volume working...
Is there any reason that compiling these for html5 or android would work better?

Without SetSoundSystemVolume(1) any sound instance changes are not noticeable, at least for my oggs (which I made 2 different sets from different programs)
SetSoundSystemVolume(1) -- seems like it -must be called at least once --- anything higher than 20 and any instance volume changes seems to not be noticeable



works and

works

You can also just use the below without SetSoundInstanceVolume

or





jd_zoo
6
Years of Service
User Offline
Joined: 12th May 2018
Location: Nova Scotia
Posted: 7th May 2024 23:34 Edited at: 7th May 2024 23:40
I have not had to adjust the master SetSoundSystemVolume(1) setting to assign instance volumes. I typically keep an integer master volume variable (0-100), and apply multipliers (0.0-1.0) to that master volume integer when adjusting for whatever action you want. You can have separate general volume and action volume multipliers based on user sound settings, and additional multipliers based on the action you are performing. The total volume ends up being between 0-100, its possible the SetSoundSystemVolume() is a multiple putting things over the 100% max?

And not sure this has any impact, and I can't remember what the exact number but there is a "too short" ogg sound file as typically raw wav files are used for the short punch sounds, or pre-load the ogg into a memblock.
Automation on Steam now!
Score Table Jr. on Google Play!

Login to post a reply

Server time is: 2024-11-17 22:36:06
Your offset time is: 2024-11-17 22:36:06