Skip to content

For HQ Player developers / Call via AppleScript

Pre-release
Pre-release
Compare
Choose a tag to compare
@vincentneo vincentneo released this 06 Dec 15:19
· 3 commits to applescript-api since this release

Just a simple release that adds a way to obtain the latest sample rate via AppleScript.
Effectively it covers #108 use case.

Example:

tell application "LosslessSwitcher"
	set rate to get latest sample rate
	do shell script "echo " & rate
end tell

Returns:
"44100" on a 44.1kHz track.

Note: on first call/launch, -1 will be returned.

For context: https://community.roonlabs.com/t/using-any-audio-source-with-hqplayer-spotify-amazon-apple-music-youtube-music-deezer-soundcloud-2023/244358/352