Go Back   Home > Forums > >

PC Based Computer music servers, crossovers, and equalization

remote mute/unmute of ecasound
remote mute/unmute of ecasound
Please consider donating to help us continue to serve you.

Ads on/off / Custom Title / More PMs / More album space / Advanced printing & mass image saving
Reply
 
Thread Tools
Old 21st November 2020, 09:20 PM   #1
DrNeon is offline DrNeon
diyAudio Member
 
Join Date: Nov 2020
Default remote mute/unmute of ecasound

I'm trying to get ecasound running as a multitrack player that allows me to selectively mute/unmute tracks remotely while it is playing. I've got it pretty close to working, but am stuck on one issue. Right now, I am able to get ecasound to start playing two mono tracks (sent equally to both L and R speakers), via



Code:
ecasound -a:1 -i track1.wav -erc:1,2 -epp:50 -a:2  -i track2.wav -erc:1,2 -epp:50  -a:all  -o:alsahw,2,0  --server

which starts both tracks playing immediately, and then, in a second process, selectively mute or unmute one of the two tracks (chains?) via



Code:
echo -e "c-select 1\r\nc-mute on\r\n" | nc -w1 localhost 2868

(this will mute chain 1, i.e. track 1, I can choose the track via the c-select command and the mute state via nc-mute)


The problem I'm running into is that I'd like to start ecasound with all tracks muted, but playing, and only then start remotely unmuting selected tracks. I've tried adding -chmute:1 after -a:1 when starting ecasound for example,



Code:
ecasound -a:1 -chmute:1 -i track1.wav -erc:1,2 -epp:50 -a:2  -i track2.wav -erc:1,2 -epp:50  -a:all  -o:alsahw,2,0  --server

and this will mute track 1, but I cannot unmute it via the remote process; it remains muted (note that the same remote unmute command will work if I start ecasound without any chmute and then mute track 1 remotely). So somehow -chmute is muting tracks in such a way that I cannot remotely unmute them. Any ideas? I don't want to start ecasound with everything unmuted and then remotely mute all; the remote interface latency is too slow.
  Reply With Quote
Old 22nd November 2020, 07:18 PM   #2
wealas is offline wealas
diyAudio Member
 
Join Date: Apr 2017
There seems to be a -E option that should allow you to call the commands to mute all channels before playback starts.
  Reply With Quote
Old 22nd November 2020, 07:31 PM   #3
DrNeon is offline DrNeon
diyAudio Member
 
Join Date: Nov 2020
Thanks, that seems to be working!
Command line is now:


ecasound -a:1 -i track1.wav -erc:1,2 -epp:50 -a:2 -i track2.wav -erc:1,2 -epp:50 -a:all -o:alsahw,2,0 --server -E "c-select 1; c-mute on; c-select 2; c-mute on"

and my remote process is able to mute/unmute individual channels
  Reply With Quote
Old 23rd November 2020, 10:36 PM   #4
DrNeon is offline DrNeon
diyAudio Member
 
Join Date: Nov 2020
As a follow-up to anyone interested, the remote muting/unmuting process seemed a little bit slow, but when I added "-b 64" to the ecasound command line to make the buffer smaller, the response to the remote process was much quicker.
  Reply to this post

Reply


remote mute/unmute of ecasoundHide this!Advertise here!
Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
technics su-g 91 mute - how to un-mute srinath Solid State 0 1st March 2015 10:59 PM
Linux + MPD player + dsp crossover via ecasound jplesset PC Based 11 15th September 2013 11:24 PM
how to unmute LM3886 ? navZ Chip Amps 33 1st July 2013 07:56 PM
Can't get TDA7266 to unmute fretless123 Chip Amps 1 18th October 2012 09:36 AM
please help - no mute but did mute mod - tda1541 loomis Digital Source 1 14th November 2002 11:54 AM


New To Site? Need Help?

All times are GMT. The time now is 10:46 PM.


Search Engine Optimisation provided by DragonByte SEO (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Resources saved on this page: MySQL 15.79%
vBulletin Optimisation provided by vB Optimise (Pro) - vBulletin Mods & Addons Copyright © 2020 DragonByte Technologies Ltd.
Copyright ©1999-2020 diyAudio
Wiki