Giter Club home page Giter Club logo

Comments (12)

prenagha avatar prenagha commented on June 29, 2024

Working for me... hmmm....
Do you get that error when first executing the action or after picking an input/output to switch to?

Can you run the audio.sh script from the command line and paste the output back here

Should be in something like

$HOME/Library/Application Support/LaunchBar/Actions/Switch Audio.lbaction/Contents/Scripts/audio.sh

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

Also let me know what uname -m output is?
And where SwitchAudioSource is located?
And anything change recently on your end?

from launchbar.

echolock avatar echolock commented on June 29, 2024

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

Run uname -m from command line and let me know the output

For the other, want to see where the SwitchAudioSource binary is installed. Is it in
/opt/homebrew/bin/SwitchAudioSource
or
/usr/local/bin/SwitchAudioSource
or other?

For the output of audio.sh, is that the exact output, like there is a newline between Hal-Plugin and Display Audio?
That is likely causing the JSON parsing problem

from launchbar.

echolock avatar echolock commented on June 29, 2024

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

Please run these 3 commands and let me know the output for each

SwitchAudioSource -a -t input
SwitchAudioSource -a -t input | tr '\n' '^'
SwitchAudioSource -a -t input | tr '\r' '^'

from launchbar.

echolock avatar echolock commented on June 29, 2024

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

I can't see how the newline is getting in there, but I made some general cleanup changes and committed them 7fa6492
Please update the action and retry
If still a problem then please run audio.sh from the command line, output to a file, and attach the file here
$HOME/Library/Application Support/LaunchBar/Actions/Switch Audio.lbaction/Contents/Scripts/audio.sh > $HOME/Desktop/output.txt

from launchbar.

echolock avatar echolock commented on June 29, 2024

Still not working with the latest version. Output.txt file attached
output.txt
.

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

ok, made another change 6e9ca52
please update to latest version 2.7 and try again

from launchbar.

echolock avatar echolock commented on June 29, 2024

Okay, thanks! The JSON error is not coming up and the audio is switching, but why is it showing this Core::init - HAL-Plugin twice? It's not an available audio source in the Sound system prefs.
Screen Shot 2022-04-18 at 10 27 55 AM
.

from launchbar.

prenagha avatar prenagha commented on June 29, 2024

The headphone icon means it is an output, the mic icon means it is an input
So whatever that is, it is both an input and output option
The action uses the switchaudio osx package to actually do all the audio stuff, so you'd have to ask over there why what shows up.
Glad we figured this one out finally

from launchbar.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.