Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export current sample rate / bit depth to other apps #108

Closed
martintrojer opened this issue Sep 13, 2023 · 1 comment
Closed

Export current sample rate / bit depth to other apps #108

martintrojer opened this issue Sep 13, 2023 · 1 comment

Comments

@martintrojer
Copy link

martintrojer commented Sep 13, 2023

Running

$ osascript -e 'tell application "Music" to get properties of current track'

does not return correct sample-rate / bit-depth for lossless tracks.

LosslessSwitcher has the data, I there an easy way for it to make it available to other apps?

Random ideas how to do it:

  • Expose a HTTP GET endpoint that returns the current state
  • Write to a logfile, in a format that other apps can easily parse
  • Write state-changes to a .json (or similar) file
  • Write to a ZMQ PUB port
@martintrojer
Copy link
Author

$  log stream --predicate 'subsystem == "com.apple.Music"'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant