PDA

View Full Version : Volume Increase/Decrease buttons not working



Fulvio Oggiano
29-12-2018, 19:32
Hi All,

First of all let me say that this software really ROCKS.

I have a little problem with the assignation of the volume buttons: I use the pc soundcard for iRacing sound, and a Headset (Hyper X) for CrewChief. I addressed the increase and decrease volume buttons, and when I press them I actually see the Messages Volume bar sliding up and down. The problem? the volume does not change at all. To do so, I have to point the mouse on the slide, and moving it, the sound increase or decrease.

Any ideas where could be the problem?

Thank you so much!

Cheers,

Fulvio

manor
04-05-2019, 14:46
Just noticed this as well. Bumping thread.

(I wanted to use buttons to "mute" Crewchief while talking with fellow drivers via Teamspeak).

mr_belowski
04-05-2019, 15:10
ok, i'll take a look at that code tonight

[edit]

i can't reproduce this issue. I've added a mute button function for the next release, but the volume up / down button assignments are working for me

manor
05-05-2019, 11:15
Problem looks to be related to nAudio. If I disable nAudio it all works as supposed.

But nAudio (for playback) is needed by me to be able to select a "secondary" device for voice messages (Astro wireless transmitter).

And as said before, the mouse interaction works, only the action bindings for increase/decrease message volumes id problematic. The indicator moves but no change in volume.

Great with a mute action.

mr_belowski
05-05-2019, 13:02
Ah, ok, I'll look at the nAudio code there :)

[edit]

this is intentional. When using nAudio the volume sliders don't update the message volume. I have absolutely no idea why I've written it like this and I have absolutely no memory of doing it. Clearly I'm sniffing too much glue. I'll see what I can do

manor
05-05-2019, 21:13
Got the new version. Not working with nAudio (and my settings) :( Somehow the volume is changed/"muted" for my default audio device all the time. Not my chosen messages playback device. I can see the volume meter for my default audio device changning when opening windows Volume mixer and selecting default device. Selecting my nAudio device, i.e. Headset Earphone (ASTRO Wireless Transmitter), no volume change is seen.

Maybe hard to address the actual device used?

mr_belowski
06-05-2019, 10:09
this works for me. The volume changing in the windows control panel is a side effect of the change (a regression - i'll fix that in the next release). The nAudio playback volume is entirely separate from the windows control panel volume. When using nAudio a sound file is loaded and cache, but each time it's played the app will check the volume setting and apply a volume scale to the sound before playing. So the volume (and mute) setting affects the file sound level, not the output device sound level (which is why I don't need to alter the sound device output level).

Anyway, i took a little time this morning to have a more in-depth look at the volume handling & muting / unmuting code and have cleaned it up a bit for the next release. It appears to be working well at my end so there'll be more improvements to come

manor
06-05-2019, 17:51
The nAudio playback volume is entirely separate from the windows control panel volume. When using nAudio a sound file is loaded and cache, but each time it's played the app will check the volume setting and apply a volume scale to the sound before playing. So the volume (and mute) setting affects the file sound level, not the output device sound level (which is why I don't need to alter the sound device output level).

Great for that :) From my perspective it somehow doesn't scale though. Actually (tested now) the background noise is actually muted, but not scaled. But neither the message nor the click sounds. (I've mapped all three functions, i.e. mute, volume up and volume down)

Looking forward for a new release. :p

manor
13-05-2019, 17:47
Tested now the version 4.9.7.9. It works now for me :) Thanks for all the good work!