kyleneideck / BackgroundMusic

Background Music, a macOS audio utility: automatically pause your music, set individual apps' volumes and record system audio.
GNU General Public License v2.0
15.89k stars 673 forks source link

Dropdown arrows move instead of doing something #475

Open ghost opened 3 years ago

ghost commented 3 years ago

Description of the bug When clicking a dropdown arrow the arrow moves

Steps to reproduce

  1. Click on a dropdown arrow

Versions

Please complete the following information.

  • Background Music: 0.4.0-SNAPSHOT-b38f6dd
  • macOS: 11.2.3 (20D91)

Hardware

Delete this part if you think it's probably not necessary.

  • Computer: M1 MacBook Air
  • Audio Device: MacBook Air Speakers:

Manufacturer: Apple Inc. Output Channels: 2 Current SampleRate: 88200 Transport: Built-in Output Source: MacBook Air Speakers

Debug logs

williamdavis@Williams-Air ~ % log stream --info --predicate 'process == "coreaudiod" or process == "Background Music" or process == "BGMXPCHelper" or composedMessage contains[cd] "Background Music" or composedMessage contains "BGM"'
Filtering the log data using "process == "coreaudiod" OR process == "Background Music" OR process == "BGMXPCHelper" OR composedMessage CONTAINS[cd] "Background Music" OR composedMessage CONTAINS "BGM""
Timestamp                       Thread     Type        Activity             PID    TTL  
2021-04-21 10:17:54.310803-0400 0x4404fb   Default     0x0                  92350  0    Background Music: BGMDebugLoggingMenuItem::menuShowingExtraOptions: Showing the menu item
2021-04-21 10:17:56.354595-0400 0x4404fb   Activity    0x57506b             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:56.354995-0400 0x4404fb   Activity    0x57506c             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:56.355049-0400 0x4404fb   Activity    0x57506d             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:56.355327-0400 0x4404fb   Default     0x57506d             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Pages)
2021-04-21 10:17:57.090345-0400 0x4404fb   Activity    0x57506e             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:57.090408-0400 0x4404fb   Activity    0x57506f             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:57.090449-0400 0x4404fb   Activity    0x576f50             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:57.090760-0400 0x4404fb   Default     0x576f50             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Pages)
2021-04-21 10:17:58.284428-0400 0x4404fb   Activity    0x576f51             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:58.284488-0400 0x4404fb   Activity    0x576f52             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:58.284534-0400 0x4404fb   Activity    0x576f53             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:58.284862-0400 0x4404fb   Default     0x576f53             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Discord Canary)
2021-04-21 10:17:58.498265-0400 0x4404fb   Activity    0x576f54             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:58.498348-0400 0x4404fb   Activity    0x576f55             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:58.498412-0400 0x4404fb   Activity    0x576f56             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:58.498728-0400 0x4404fb   Default     0x576f56             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Discord Canary)
2021-04-21 10:17:58.688131-0400 0x4404fb   Activity    0x576f57             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:58.688199-0400 0x4404fb   Activity    0x576f58             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:58.688242-0400 0x4404fb   Activity    0x576f59             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:58.688592-0400 0x4404fb   Default     0x576f59             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Discord Canary)
2021-04-21 10:17:59.858490-0400 0x4404fb   Activity    0x576f5a             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:17:59.858544-0400 0x4404fb   Activity    0x576f5b             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:17:59.858588-0400 0x4404fb   Activity    0x576f5c             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:17:59.858886-0400 0x4404fb   Default     0x576f5c             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Firefox)
2021-04-21 10:18:00.206770-0400 0x4404fb   Activity    0x576f5d             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:00.206819-0400 0x4404fb   Activity    0x576f5e             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:00.206860-0400 0x4404fb   Activity    0x576f5f             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:00.207196-0400 0x4404fb   Default     0x576f5f             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Firefox)
2021-04-21 10:18:00.380445-0400 0x4404fb   Activity    0x576f80             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:00.380499-0400 0x4404fb   Activity    0x576f81             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:00.380536-0400 0x4404fb   Activity    0x576f82             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:00.380814-0400 0x4404fb   Default     0x576f82             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Firefox)
2021-04-21 10:18:00.554491-0400 0x4404fb   Activity    0x576f83             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:00.554557-0400 0x4404fb   Activity    0x576f84             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:00.554606-0400 0x4404fb   Activity    0x576f85             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:00.554909-0400 0x4404fb   Default     0x576f85             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Firefox)
2021-04-21 10:18:00.712569-0400 0x4404fb   Activity    0x576f86             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:00.712609-0400 0x4404fb   Activity    0x576f87             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:00.712644-0400 0x4404fb   Activity    0x576f88             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:00.712933-0400 0x4404fb   Default     0x576f88             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (Firefox)
2021-04-21 10:18:01.613549-0400 0x4404fb   Activity    0x576f89             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:01.613618-0400 0x4404fb   Activity    0x576f8a             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:01.613671-0400 0x4404fb   Activity    0x576f8b             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:01.613989-0400 0x4404fb   Default     0x576f8b             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:01.788171-0400 0x4404fb   Activity    0x576f8c             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:01.788273-0400 0x4404fb   Activity    0x576f8d             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:01.788329-0400 0x4404fb   Activity    0x576f8e             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:01.788748-0400 0x4404fb   Default     0x576f8e             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:01.969843-0400 0x4404fb   Activity    0x576f8f             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:01.969888-0400 0x4404fb   Activity    0x576f90             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:01.969925-0400 0x4404fb   Activity    0x576f91             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:01.970237-0400 0x4404fb   Default     0x576f91             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:02.357424-0400 0x4404fb   Activity    0x576f92             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:02.357478-0400 0x4404fb   Activity    0x576f93             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:02.357529-0400 0x4404fb   Activity    0x576f94             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:02.357905-0400 0x4404fb   Default     0x576f94             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:02.547579-0400 0x4404fb   Activity    0x576f95             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:02.547668-0400 0x4404fb   Activity    0x576f96             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:02.547721-0400 0x4404fb   Activity    0x576f97             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:02.548130-0400 0x4404fb   Default     0x576f97             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:02.777210-0400 0x4404fb   Activity    0x576f98             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:02.777253-0400 0x4404fb   Activity    0x576f99             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:02.777287-0400 0x4404fb   Activity    0x576f9a             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:02.777573-0400 0x4404fb   Default     0x576f9a             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:03.054006-0400 0x4404fb   Activity    0x576f9b             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:03.054089-0400 0x4404fb   Activity    0x576f9c             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:03.054144-0400 0x4404fb   Activity    0x576f9d             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:03.054571-0400 0x4404fb   Default     0x576f9d             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:03.211571-0400 0x4404fb   Activity    0x576f9e             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:03.211617-0400 0x4404fb   Activity    0x576f9f             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:03.211658-0400 0x4404fb   Activity    0x576fc0             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:03.211912-0400 0x4404fb   Default     0x576fc0             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:04.303409-0400 0x4404fb   Activity    0x576fc1             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:04.303464-0400 0x4404fb   Activity    0x576fc2             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:04.303501-0400 0x4404fb   Activity    0x576fc3             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:04.303811-0400 0x4404fb   Default     0x576fc3             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:04.659099-0400 0x4404fb   Activity    0x576fc4             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:04.659155-0400 0x4404fb   Activity    0x576fc5             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:04.659196-0400 0x4404fb   Activity    0x576fc6             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:04.659452-0400 0x4404fb   Default     0x576fc6             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
2021-04-21 10:18:04.872539-0400 0x4404fb   Activity    0x576fc7             92350  0    Background Music: (AppKit) trackMouse send action on mouseUp
2021-04-21 10:18:04.872603-0400 0x4404fb   Activity    0x576fc8             92350  0    Background Music: (AppKit) sendActionFrom:
2021-04-21 10:18:04.872643-0400 0x4404fb   Activity    0x576fc9             92350  0    Background Music: (AppKit) sendAction:
2021-04-21 10:18:04.872973-0400 0x4404fb   Default     0x576fc9             92350  0    Background Music: BGMAppVolumes::showHideExtraControls: Hiding extra controls (News)
ghost commented 3 years ago

https://user-images.githubusercontent.com/58738226/115569367-2895ec80-a28b-11eb-8926-2eecbd544d2a.mov

AbirRazzak commented 3 years ago

I'm able to reproduce this bug as well.

Version: 0.4.0-SNAPSHOT-b38f6dd
OS: MacOS 11.2.3
kyleneideck commented 3 years ago

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.

CCfeno7 commented 3 years ago

It used to give you drop box where you can select sound output for particular app

cepsong commented 3 years ago

any update or resolution yet for this issue in Big Sur?

EmNewman commented 2 years ago

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!

EmNewman commented 2 years ago

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.

cepsong commented 2 years ago

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.

iMarc92 commented 1 year ago

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.

image image

This is also not working for me.

image

@kyleneideck any ideas ?