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 Classic Chat / Set sound volume don't work

Author
Message
Game_Code_here
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 12th Sep 2020 09:28
So this command does nothing

Setsoundinstancevolume

There's no other way to set sound file volume?
blink0k
Moderator
7
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
Posted: 12th Sep 2020 09:58
Works for me.
Note that PlaySound() will return a handle which is what you should pass to Setsoundinstancevolume()
Lupo4mica37
User Offline
Joined: 1st Jun 2020
Location:
Posted: 12th Sep 2020 22:25
This is how you do it to change the volume of a specific audio being played. You cannot just PlaySound(1) and then try to adjust the volume, as it will not work. I tried it and had the same problem until I figured out what was the problem. The solution is that you need to PlaySound(1) to an integer like this:



Then you can use the command SetSoundInstanceVolume(SoundInstanceID,VolumeValue) like this:



Then it works.

Have a good night.
????????
Game_Code_here
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 13th Sep 2020 00:38 Edited at: 13th Sep 2020 00:39
Thank you Lupo4mica37 for your help, I can't believe how crazy stupid it is to have a sound volume. Lol
Lupo4mica37
User Offline
Joined: 1st Jun 2020
Location:
Posted: 13th Sep 2020 02:59
You are welcome.

Why do you say it is crazy stupid to have a sound volume? I don't quiet understand. Can you elaborate please?
????????
Game_Code_here
User Offline
Joined: 2nd Jun 2020
Location:
Posted: 13th Sep 2020 23:02
I was kinda kidding around when I said that. There's no good examples in the help files. The explanation is not explained really well.

You told me something that works, the help files did not help.
Lupo4mica37
User Offline
Joined: 1st Jun 2020
Location:
Posted: 14th Sep 2020 03:39
I know what you mean, sometimes the information is not very clear, so kinda leaves room to figure out for oneself.

I am glad I could be of service to you.
????????

Login to post a reply

Server time is: 2020-10-25 17:37:05
Your offset time is: 2020-10-25 17:37:05