AnastasiiaSie / soundflower

Automatically exported from code.google.com/p/soundflower
GNU General Public License v2.0
0 stars 0 forks source link

When switching my TV's video/audio-source, SoundFlower defaults to None (OFF) #112

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Route the output of an application to Soundflower (2ch)
2. Route Soundflower to HDMI
3. Switch my TV's video/audio-source

What is the expected output? What do you see instead?
I expect that the selected  output in soundlfower to remain the same, even if I 
decide to watch TV for a little while.

What version of the product are you using? On what operating system?
Using Soundflower 1.5.2 on an iMac running 10.6.8

Please provide any additional information below.
It seems like the device "HDMI" disappears as available source in OS X when 
switching my TV(display to another source. With this in mind, soundlfower acts 
correctly, because if a output disappears, it should not be available in 
soundflower! But, it would be great if soundflower is able to detect when the 
previously used output gets available, and then sets that source as output 
source again!

Original issue reported on code.google.com by niclas@skorpion.se on 18 Oct 2011 at 2:19

GoogleCodeExporter commented 8 years ago
As you note, Soundflower does not have the ability to do this state management. 
 In fact, this is something that the OS should be taking care of.  I'm going to 
close the issue because this is really up to Apple to take care of, not 
Soundflower.  Sorry!

Original comment by t...@electrotap.com on 1 Feb 2012 at 4:23

GoogleCodeExporter commented 8 years ago
If you switch back to the mac, hdmi is back in the soundflower list and you 
can/have to choose it manually. would it be such a big problem to do this step 
automatically out of application?

Original comment by enemy2003@googlemail.com on 30 Dec 2012 at 1:53

GoogleCodeExporter commented 8 years ago
Ditto, this is a minor annoyance, but I connect/disconnect my mac often enough 
that it adds up to be a headache after awhile...

I wonder if there's a way to use automator to get macros to take care of it. 
I'm not savvy enough to figure that out.

Original comment by thesuiti...@gmail.com on 23 Apr 2013 at 4:15

GoogleCodeExporter commented 8 years ago
i wrote a script to workaround this, works fine an has a very little footprint. 
but its a bit more than only the script. i will write it down in the next days 
and post it somewhere soon.

Original comment by enemy2003@googlemail.com on 23 Apr 2013 at 4:32

GoogleCodeExporter commented 8 years ago
check this simple script, it checks the system.log an recogize by this way that 
you switched the source back to your mac. at this point it will kill the 
soundflowerbed process and start it again, your sound switched back to hdmi 
automaticaly in just a second. change the values told in the script and enjoy. 
works very well for me. sometimes it stucks after a few days, then just restart 
it.

Original comment by enemy2003@googlemail.com on 25 Apr 2013 at 8:19

Attachments:

GoogleCodeExporter commented 8 years ago
Thanks for the script! However, I dont get the "1080," in my system.log. I've 
tried to filter words, but cant pinpoint the right one. Can you provide me/us 
the full line from your system.log that includes the word "1080,", then I 
should be able to find the right word to search for :)

Original comment by niclas@skorpion.se on 25 Apr 2013 at 10:49

GoogleCodeExporter commented 8 years ago
Switch your source away from Mac an then back, than have a look on your log, or 
send it to my Email :)

Original comment by enemy2003@googlemail.com on 26 Apr 2013 at 5:41

GoogleCodeExporter commented 8 years ago
Tried your script, problem is that I can see no event log on screen connection 
in system.log, I'm on Lion, do you know where to check it?

Original comment by jorge.ar...@gmail.com on 30 Apr 2013 at 2:08

GoogleCodeExporter commented 8 years ago
damn captcha... I'm on 10.8.x and I got a lot of messages in my 
/var/log/system.log when I change the source of my tv. is there no output on 
lion? what display settings do you have? if you want send me an email I try to 
help you.

Original comment by enemy2003@googlemail.com on 30 Apr 2013 at 2:49

GoogleCodeExporter commented 8 years ago
I'm using an thunderbolt adapter on an hdmi display, works great, I monitorize 
all messages in Console.app and there's no event log. I'll send the logs when 
I'm back home, thanks.

Original comment by jorge.ar...@gmail.com on 30 Apr 2013 at 3:42

GoogleCodeExporter commented 8 years ago
Hey enemy2, I'm not really sure what to do with the script you've posted. Do I 
run it in automator or something? In your instructions it says "run the script 
as root by rc.local oder manually with "nice soundflower_plug_check.sh &", so 
what & where is rc.local and how do I run the script with it? 

Original comment by pnewc...@gmail.com on 15 Jun 2013 at 2:39

GoogleCodeExporter commented 8 years ago
its a shell script you have to run it in terminal. rc.local is just a way to 
run it on boot. @reboot in crontab should work too for example.

have a look at enemydev.com if it doesn't work - sometimes it doesn't work if 
you edit the soundflower app manually, thats strange but I have a working app 
in my page. tested on different osx installations this one woks.

Original comment by enemy2003@googlemail.com on 15 Jun 2013 at 2:47

GoogleCodeExporter commented 8 years ago
Oops, I missed your response. Ok, so I opened up terminal, changed the 
directory to downloads (where your sh file is saved), then typed "nice 
soundflower_plug_check.sh &", and it gave me an error: 

nice: soundflower_plug_check.sh: No such file or directory

I don't know what "running it on boot" means, or what "@reboot in crontab" 
means. lol, sorry for my ignorance...

I tried your patched app, but I think it's customized for your particular 
device. Mine shows up as "Macbook Air" as  the system name and "Color LCD" as 
the device name, so it's gonna be different than yours.

Original comment by pnewc...@gmail.com on 10 Jul 2013 at 6:05

GoogleCodeExporter commented 8 years ago
ok that could be the problem, mine is for macmini late 2012, try it with vi or 
some other editor, perhaps it will work, don't know why it sometimes does and 
sometimes not. i'm sorry. but if none of the developers (apple or soundflower 
team) can or will do something i only can give this advice and wish good luck ;)

Original comment by enemy2003@googlemail.com on 10 Jul 2013 at 6:24

GoogleCodeExporter commented 8 years ago
Yes, I edited the soundflower_plug_check.sh to put in my system name and tv 
name (from the system.log). I just don't know what to do with that sh file 
now...

Original comment by pnewc...@gmail.com on 10 Jul 2013 at 10:14

GoogleCodeExporter commented 8 years ago
[deleted comment]
GoogleCodeExporter commented 8 years ago
Did you solve the problem?

I have a similar problem... Please help me.

I have a MacBook Pro 2010 with a ASUS MX239H external screen (with Stereo 
speakers) connected through Mini Display Port to HDMI and I have a similar 
problem; when I open or close the lid of my MacBook Pro to turn ON or OFF the 
build in screen, it switches Soundflower to None (OFF). I would like 
Soundflower to stay on HDMI sound.

I use OS X 10.8.5 and Soundflower 1.6.6b

Original comment by dalm...@gmail.com on 9 Oct 2013 at 6:05

GoogleCodeExporter commented 8 years ago
I've exactly the same configuration as in post #17 and would like a solution to 
have Soundflowerbed to select HDMI automatically each time I plug-in my display 
!

Original comment by lu.couto...@gmail.com on 20 Oct 2013 at 12:55

GoogleCodeExporter commented 8 years ago
Please reopen this. 

I have a mac mini connected to a beamer, every time the beamer goes on or off, 
changes source or something, the mac mini doesn't see the HDMI interface, 
sometimes the interface disappears for just a moment.

Soundflower 2ch is setup as the default output device for the mac, and then 
soundflower itself streams to HDMI. This is to have volume control and 
eventually using AULab to have a software based equalizer.

When the HDMI interface disappears and reappears, soundflower output interface 
is set up OFF, forcing every time to set it again to HDMI. Being the macmini 
accessible only via mobile mouse or remote desktop, is very tedious to do so 
each time.

I don't think is very hard to save somewhere the output interface (even just 
the name) the user last selected manually, and try to stick to it by 
reselecting it automatically when that same interface is available. If I had 
xcode setup and time to refresh my rusty C++ skills I could attempt to add this 
myself.

Original comment by s.gia...@semeru.it on 4 Nov 2014 at 5:09

GoogleCodeExporter commented 8 years ago
I'm just an average user looking to help with this issue and the script posted 
above is ok for me, but it has a lot of problems with it...

  - First, it has hard coded paths which have changed.
  - Secondly, it assumes the TV is 1080 which is not always true.
  - Third, it requires root, which isn't needed
    (Soundflower can run and also be killed in user space, no root or sudo needed)
  - Last, there are lines and vars that just don't make sense or aren't needed.

I've started to rewrite the script, but the one secret I can't figure out is 
how the author sets the right sound device to HDMI... 

I believe it is the line:
> Soundflowerbed -psn_0_1929687

But I don't know where this information comes from and I can't make sense of it 
in the source code. 

Does Soundflowerbed support arguments?

Here's the script I've modified:
https://gist.github.com/tresf/48b4abe5c551edeadf2b

Please contact me @tresf github or tres.finocchiaro@gmail if you can help!

Original comment by tres.fin...@gmail.com on 16 Dec 2014 at 12:59

GoogleCodeExporter commented 8 years ago
since a while (maybe late 10.8.x or 10.9) it doesn't work proper on my system 
so I gave up :(

Original comment by enemy2003@googlemail.com on 16 Dec 2014 at 6:14