Open ghost opened 3 years ago
I'm able to reproduce this bug as well.
Version: 0.4.0-SNAPSHOT-b38f6dd
OS: MacOS 11.2.3
Thanks for the report. I actually made an issue for this as well: #467 but I'll close that one because this one has a lot more details.
It used to give you drop box where you can select sound output for particular app
any update or resolution yet for this issue in Big Sur?
There may be a workaround using AppleScript, based on this PR: https://github.com/kyleneideck/BackgroundMusic/pull/457 I'm not familiar with AppleScript, but I'll try to take a look. If anyone else is more familiar with AppleScript and can help find a workaround for the time being, it'd be much appreciated!
Alright, I've found a workaround using the AppleScript API. Here's an example that sets Firefox to be entirely in the Left side, and Spotify to be entirely in the Right side.
Note that pan operates on a scale of -100 to 100, where -100 is all the way left and 100 is all the way right. Also note that the name of the application should match the display name in the Background Music menu.
tell application "Background Music"
set pan of (a reference to (the first audio application whose name is equal to "Firefox")) to -100
set pan of (a reference to (the first audio application whose name is equal to "Spotify")) to 100
end tell
You can run this by opening Script Editor, copy/pasting this in, making any necessary modifications, then pressing the Run button.
Thank you Emily for the guidance. This method works with most applications except on our own. We have an application calling BGM to control the volume of other apps using apple script, but it seems we cannot neither control the volume nor the pan of our own application using the apple script through BGM. Any idea about this (no self-control)? Thanks.
On 6 Jan 2022, at 5:00 AM, Emily Newman @.***> wrote:
Alright, I've found a workaround using the AppleScript API. Here's an example that sets Firefox to be entirely in the Left side, and Spotify to be entirely in the Right side.
Note that pan operates on a scale of -100 to 100, where -100 is all the way left and 100 is all the way right. Also note that the name of the application should match the display name in the Background Music menu.
tell application "Background Music"
set pan of (a reference to (the first audio application whose name is equal to "Firefox")) to -100 set pan of (a reference to (the first audio application whose name is equal to "Spotify")) to 100
end tell You can run this by opening Script Editor, copy/pasting this in, making any necessary modifications, then pressing the Run button.
— Reply to this email directly, view it on GitHub https://github.com/kyleneideck/BackgroundMusic/issues/475#issuecomment-1006072623, or unsubscribe https://github.com/notifications/unsubscribe-auth/ATMDTHXRYYKJOFLM524CFYLUUSWNDANCNFSM43KOZB3Q. Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub. You are receiving this because you commented.
Alright, I've found a workaround using the AppleScript API. Here's an example that sets Firefox to be entirely in the Left side, and Spotify to be entirely in the Right side.
Note that pan operates on a scale of -100 to 100, where -100 is all the way left and 100 is all the way right. Also note that the name of the application should match the display name in the Background Music menu.
tell application "Background Music" set pan of (a reference to (the first audio application whose name is equal to "Firefox")) to -100 set pan of (a reference to (the first audio application whose name is equal to "Spotify")) to 100 end tell
You can run this by opening Script Editor, copy/pasting this in, making any necessary modifications, then pressing the Run button.
Do you have any idea why this does not work for me? It's the same with changing the volume.
This is also not working for me.
@kyleneideck any ideas ?
Description of the bug When clicking a dropdown arrow the arrow moves
Steps to reproduce
Versions
Hardware
Manufacturer: Apple Inc. Output Channels: 2 Current SampleRate: 88200 Transport: Built-in Output Source: MacBook Air Speakers
Debug logs