HydrogenAudio

Hosted Forums => foobar2000 => General - (fb2k) => Topic started by: jazzthieve on 2019-03-01 23:20:03

Title: Starting foobar muted deliberately
Post by: jazzthieve on 2019-03-01 23:20:03
Is it possible to start foobar2000 in a forced muted state or to disable sound completely?
Title: Re: Starting foobar muted deliberately
Post by: Daeron on 2019-03-02 03:36:06
Perhaps with command line options and playback context menu option mute?
https://wiki.hydrogenaud.io/index.php?title=Foobar2000:Commandline_Guide
Title: Re: Starting foobar muted deliberately
Post by: loz on 2019-03-02 12:10:29
I believe foo_scheduler (https://www.foobar2000.org/components/view/foo_scheduler) has an option for tasks on start but I'm not currently near a machine w/ foobar to verify. If it does, just set it to mute/vol 0 on startup.
Title: Re: Starting foobar muted deliberately
Post by: davideleo on 2019-03-02 14:14:20
If you always want foobar2000 to be in mute mode on start up, you can achieve that with one jscript line:
Code: [Select]
fb.VolumeMute()



Title: Re: Starting foobar muted deliberately
Post by: jazzthieve on 2019-03-02 17:26:01
Thanks for all your suggestions. I'm trying the jscript suggestion but it doesn't set default to mute on startup, only when the jscript panel is activated. Is there a way to initiate fb.VolumeMute() when playback starts? That would be the next best thing.
Title: Re: Starting foobar muted deliberately
Post by: davideleo on 2019-03-02 17:55:13
I'm trying the jscript suggestion but it doesn't set default to mute on startup, only when the jscript panel is activated.

Isn't the jscript panel activated on start up?
Title: Re: Starting foobar muted deliberately
Post by: jazzthieve on 2019-03-02 18:25:35
I'm not sure about that, but the code isn't run on start up, only when I open the config window and apply it runs and applies mute.
Title: Re: Starting foobar muted deliberately
Post by: davideleo on 2019-03-02 18:49:53
Pressing "Ok" in the config window triggers the panel initialization, which is what is supposed to happen by default on start up.
Can you check in the console if the panel is actually initialized on start up?
Title: Re: Starting foobar muted deliberately
Post by: jazzthieve on 2019-03-02 19:14:51
I've found the reason why it didn't work. I was running two consecutive portable installations, one was my regular config, the other a barebones test bed. The jscript panel on the test bed does initialize on startup according to the console but when the other regular portable foobar2000 was already running the test bed config wouldn't apply fb.VolumeMute(). When I started only the test bed and no other foobar2000 running then all went as expected. So your solution works. Thanks.
Title: Re: Starting foobar muted deliberately
Post by: Simon_ Thunder on 2019-03-02 21:14:02
Foo Scheduler:

A) Upper window:
1- Add player event - On playback start - (re enable event)

B) Window below:
1. Add actions list name - Mute Volume
2. Add action - Mute/Unmute

C) Upper window:
On playback start - (re enable event) - Assign action list - Mute Volume