-
First Dev On The Internet
@ KJ : Hud.Game.IsIngameSoundEnabled
Is there a way to get the sound volume from game ?
I added Ancient & Primal drop sounds to my CraftersDelightPlugin and I use Hud.Game.IsIngameSoundEnabled like you did in CooldownSoundPlayerPlugin.
I don't know if it is possible to read from memory but having sound played by HUD at the same volume setting as the game would be perfect.
Thank you.
-
Post Thanks / Like - 1 Thanks
ADV2015 (1 members gave Thanks to User5981 for this useful post)
-
First Dev On The Internet
KJ, I have users complaining of future heart attacks
If you could add these to a todo list (even if their time never comes) that would be great :
Hud.Game.MasterVolume
Hud.Game.EffectsVolume
Hud.Sound.SetSoundVolumeTo()
-
in next release:
- BREAKING CHANGE: IGameController.IsIngameSoundEnabled is moved under ISoundController
- added: ISoundController.IngameMasterVolume and IngameEffectsVolume
but sadly there is no way to change the volume of a SoundPlayer
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
-
First Dev On The Internet
Ah thanks for the reply and new features!
At least I can make multiple versions of a sound file at different volumes and call them depending on the game volume :-)
-
ok, managed to find a solution
HUD will automatically adjust IT'S OWN (I mean the process') volume according to this formula:
volume = maxvolume * (MasterVolume / 100)*(EffectsVolume / 100)
so if MasterVolume is 50 and EffectsVolume is 20, then HUD's volume will be at 10%
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
-
Post Thanks / Like - 3 Thanks
-
First Dev On The Internet
Hats off to you sir!
(and less work for me, all I'll have to do will be changing IsIngameSoundEnabled following next release)
-
First Dev On The Internet
Originally Posted by
KillerJohn
ok, managed to find a solution
HUD will automatically adjust IT'S OWN (I mean the process') volume according to this formula:
volume = maxvolume * (MasterVolume / 100)*(EffectsVolume / 100)
so if MasterVolume is 50 and EffectsVolume is 20, then HUD's volume will be at 10%
Hi KJ,
I did some tests playing with the game volume settings and found the sound a bit low,
then I put headphones and realised the sounds are only played on the left channel,
If you make it stereo with the same formula, the volume will be perfect!
Last edited by User5981; 08-16-2018 at 01:47 PM.
-
Active Member
Is it possible to add a multiplier to the formula? I want a low Diablo volume but a high TH volume.
Edit:
A workaround:
Put volume of HUD on the left side of KJ's screenshot back to the top. But you have to do this after every TH start.
Last edited by bm206; 08-16-2018 at 07:09 AM.
-
Member
The latest version broke the default item speak plugin somehow. I had item speak enabled for ancients / primals but now I can't hear anything.
Edit: Nevermind, it's just my in game volume being super low. It does relate to this topic since i've always like HUD being louder than the game itself.
Last edited by xtechwolf; 08-16-2018 at 01:54 PM.
-
Originally Posted by
User5981
Hi KJ,
I did some tests playing with the game volume settings and found the sound a bit low,
then I put headphones and realised the sounds are only played on the left channel,
If you make it stereo with the same formula, the volume will be perfect!
I don't think I have control over that.
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
-
Post Thanks / Like - 1 Thanks
JollyTex (1 members gave Thanks to KillerJohn for this useful post)
-
Originally Posted by
bm206
Is it possible to add a multiplier to the formula? I want a low Diablo volume but a high TH volume.
Edit:
A workaround:
Put volume of HUD on the left side of KJ's screenshot back to the top. But you have to do this after every TH start.
does make a sense to add a multiplier to ISoundController
Do not send me private messages unless it is absolutely necessary or the content is sensitive or when I ask you to do that...
-
First Dev On The Internet
Originally Posted by
KillerJohn
I don't think I have control over that.
I don't know in C# but In audio DSP plugins, the right channel is often the following number
e.g
SoundOutput[0] = Left channel
SoundOutput[1] = Right channel
it could also be routing :
input[0] route to Output[0] for left
input[1] route to Output[1] for right
or maybe there is a pan parameter :
pan = -1 left only
pan = 0 stereo
pan = +1 right only
-
Active Member
Originally Posted by
KillerJohn
does make a sense to add a multiplier to ISoundController
Or a fixed output volume in a file like TH does for the local language?
-
First Dev On The Internet
@KJ
If you control TurboHUD's volume using windows mixer control :
Windows Mixer Control in C#
(trying to help while completly blind on this)
-
Member
Originally Posted by
User5981
Hi KJ,
I did some tests playing with the game volume settings and found the sound a bit low,
then I put headphones and realised the sounds are only played on the left channel,
If you make it stereo with the same formula, the volume will be perfect!
Confirmed. I also only get the left channel.