Separate Volume Controls

An area for discussing new ideas and additions to Oolite.

Moderators: winston, another_commander

User avatar
XB7
Competent
Competent
Posts: 44
Joined: Wed Jul 15, 2009 9:00 pm
Location: Oregon, US

Separate Volume Controls

Post by XB7 » Thu Apr 16, 2015 8:35 pm

Someone might have to school me -- it's been a while since I've checked out Oolite. I'm running the development version with the Background Set. I also have Speech Messages: Comm Only turned on in settings. Is there a configuration file somewhere where we can modify sound effects, music and speech message volumes separately? It would be great if there were three separate volume settings in the options menu or is that something that can be OXP'd?

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: Separate Volume Controls

Post by another_commander » Fri Apr 17, 2015 8:01 am

I don't know about OXPs, but in the core we have only the master volume control in Options. Making three sliders just for sound volume would mean that we would run out of space and require a redesign of the Game Options screen. I am not fully convinced that it's worth the hassle, at least not for v1.82.

User avatar
Wildeblood
---- E L I T E ----
---- E L I T E ----
Posts: 2161
Joined: Sat Jun 11, 2011 6:07 am
Location: Western Australia
Contact:

Re: Separate Volume Controls

Post by Wildeblood » Fri Apr 17, 2015 8:13 am

Unless you made every individual sound sample independently settable, it wouldn't solve the problem of the trading bell being too loud compared to the others. Best leave this can of worms alone.

User avatar
Smivs
Retired Assassin
Retired Assassin
Posts: 8408
Joined: Tue Feb 09, 2010 11:31 am
Location: Disunited Kingdom
Contact:

Re: Separate Volume Controls

Post by Smivs » Fri Apr 17, 2015 8:19 am

another_commander wrote:I am not fully convinced that it's worth the hassle, at least not for v1.82.
Agreed. There are probably far more important aspects of the game that the Devs could be working on.
Personally my cockpit is a quiet and peaceful place - I really don't like noise-clutter so I just use the default sound effects, set to a low volume. I find spoken messages are an irritating distraction, and although music plays a huge part in my 'real' life, there is no place for it on my ship.
This is not a functionality I (and probably many others) would ever want. Much better would be a way to selectively disable default sounds. Apart from ECM, lasers and hull-hits, what else do you really need?
Commander Smivs, the friendliest Gourd this side of Riedquat.

User avatar
spud42
---- E L I T E ----
---- E L I T E ----
Posts: 1164
Joined: Wed Mar 26, 2014 10:11 am
Location: Brisbane,Australia

Re: Separate Volume Controls

Post by spud42 » Fri Apr 17, 2015 12:46 pm

couldn't you use audacity or similar to reduce the volume of the oog files that are too loud?
Arthur: OK. Leave this to me. I'm British. I know how to queue.
OR i could go with
Arthur Dent: I always said there was something fundamentally wrong with the universe.
or simply
42

washuu_de
Average
Average
Posts: 8
Joined: Tue Dec 18, 2012 4:18 pm

Re: Separate Volume Controls

Post by washuu_de » Mon Oct 24, 2016 4:44 pm

another_commander wrote:I don't know about OXPs, but in the core we have only the master volume control in Options. Making three sliders just for sound volume would mean that we would run out of space and require a redesign of the Game Options screen. I am not fully convinced that it's worth the hassle, at least not for v1.82.
The BlueDanube sound is WAAAY too load compared to the voice mesages. I replaced the ogg file in /opt/Oolite/oolite.app/Resources/Music with some other file but it looks like the music is hardwired into oolite. The software doesn't read that file at all.
How about allowing to replace the ogg with another music that is less loud?

~~~~

washuu_de

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: Separate Volume Controls

Post by another_commander » Mon Oct 24, 2016 5:19 pm

After you replaced the ogg, did you try Shift-restart?

User avatar
Svengali
---- E L I T E ----
---- E L I T E ----
Posts: 2365
Joined: Sat Oct 20, 2007 2:52 pm

Re: Separate Volume Controls

Post by Svengali » Mon Oct 24, 2016 8:31 pm

Would it be possible to allow volume control for Sound.playMusic()?

User avatar
Diziet Sma
---- E L I T E ----
---- E L I T E ----
Posts: 6310
Joined: Mon Apr 06, 2009 12:20 pm
Location: Aboard the Pitviper S.E. "Blackwidow"

Re: Separate Volume Controls

Post by Diziet Sma » Mon Oct 24, 2016 10:37 pm

Svengali wrote:Would it be possible to allow volume control for Sound.playMusic()?
Gets my vote..
Most games have some sort of paddling-pool-and-water-wings beginning to ease you in: Oolite takes the rather more Darwinian approach of heaving you straight into the ocean, often with a brick or two in your pockets for luck. ~ Disembodied

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: Separate Volume Controls

Post by another_commander » Tue Oct 25, 2016 6:04 am

Diziet Sma wrote:
Svengali wrote:Would it be possible to allow volume control for Sound.playMusic()?
Gets my vote..
I have already something in the works for this. Some more testing needed. Wish me luck, if all OK, we may have it into tonight's nightly.

User avatar
Svengali
---- E L I T E ----
---- E L I T E ----
Posts: 2365
Joined: Sat Oct 20, 2007 2:52 pm

Re: Separate Volume Controls

Post by Svengali » Tue Oct 25, 2016 10:26 am

another_commander wrote:I have already something in the works for this. Some more testing needed. Wish me luck, if all OK, we may have it into tonight's nightly.
That would be awesome, a_c!

another_commander
Quite Grand Sub-Admiral
Quite Grand Sub-Admiral
Posts: 5389
Joined: Wed Feb 28, 2007 7:54 am

Re: Separate Volume Controls

Post by another_commander » Tue Oct 25, 2016 4:37 pm

... aaaand here we go. Commit 74bb815 should enable an optional third parameter in the JS Sound class function playMusic, representing the desired volume of the music to play. The parameter is a float capped between 0.0 and 1.0 and is relative to the master gain, which means that a value of 1.0 gives it its full gain at the current master volume setting. Feel free to test and let us know what you think.

washuu_de
Average
Average
Posts: 8
Joined: Tue Dec 18, 2012 4:18 pm

Re: Separate Volume Controls

Post by washuu_de » Wed Oct 26, 2016 5:44 am

another_commander wrote:After you replaced the ogg, did you try Shift-restart?
Yes. But that doesn't change a thing.

User avatar
Svengali
---- E L I T E ----
---- E L I T E ----
Posts: 2365
Joined: Sat Oct 20, 2007 2:52 pm

Re: Separate Volume Controls

Post by Svengali » Wed Oct 26, 2016 8:27 am

washuu_de wrote:
another_commander wrote:After you replaced the ogg, did you try Shift-restart?
Yes. But that doesn't change a thing.
Hmm. There are OXP/OXZs which are replacing the main theme or docking music. Please try without any AddOn and let us know.

washuu_de
Average
Average
Posts: 8
Joined: Tue Dec 18, 2012 4:18 pm

Re: Separate Volume Controls

Post by washuu_de » Wed Oct 26, 2016 8:50 pm

Svengali wrote:
washuu_de wrote:
another_commander wrote:After you replaced the ogg, did you try Shift-restart?
Yes. But that doesn't change a thing.
Hmm. There are OXP/OXZs which are replacing the main theme or docking music. Please try without any AddOn and let us know.
I installed RandomDockingMusic.oxp and without removing the addons it worked right away.

So... Thank you very much for the hint.
One other thing, though...

Because my test sound file is rather short I thought i could set it to repeat.

So I changed

Code: Select all

Sound.load(track)
Sound.playMusic(track)
this.OneSecTimer.stop()
to

Code: Select all

Sound.load(track)
Sound.playMusic(track, true)
this.OneSecTimer.stop()
and because that didn't work I tried

Code: Select all

Sound.load(track)
Sound.playMusic(track, "yes")
this.OneSecTimer.stop()
It didn't work as intended (start playing the ogg sound again if it ends before the docking sequence is finished).

I read some documentation and it says:

Code: Select all

[b]playMusic[/b]

function [b]playMusic[/b](soundFile : String [, loop: Boolean])

Play the specified music file, optionally looped. This may have no effect depending on the player’s music settings.
I wonder where those settings are...

~~~~

Post Reply