Commit graph

198 commits

Author SHA1 Message Date
Gonçalo Neves
a8f4ace099 Fix volume icon on menu bar not centered 2024-09-07 21:39:42 +00:00
manzick
62174be95e Add arc browser support 2024-05-26 20:48:17 +06:00
Kyle Neideck
ad14e1b0a4
Fix BGMDevice not immediately removed after uninstall on macOS 14.4.
The uninstall script was failing to restart `coreaudiod`.

`launchctl kickstart -k` is no longer permitted for `coreaudiod`. See
<https://developer.apple.com/documentation/macos-release-notes/macos-14_4-release-notes>
(thanks to @gchilds) and commit
3097f4b621.

Fixes #731.
2024-04-25 09:16:29 +10:00
Kyle Neideck
61be8bead4
Bump the patch version number again.
Also, update the min macOS version in the installer to the min version
actually supported (10.13).
2024-04-25 09:05:03 +10:00
Kyle Neideck
e655d571e0
Fix the About panel not always opening on macOS 14.4+. 2024-04-24 17:55:46 +10:00
Kyle Neideck
9257d50b15
In the About panel, link to the contributors page on GitHub.
Also, bump the patch version number and copyright years. (Should have
done that before tagging v0.4.1, so jump to v0.4.2.)
2024-04-24 13:50:53 +10:00
Kyle Neideck
73f221e423
skip-ui-tests.py: Update the path to Python as macOS dropped Python 2. 2024-03-07 08:42:01 +11:00
Kyle Neideck
5000c64084
Fix build errors in XCode 15.2.
Ignore deprecation warnings in PublicUtility and drop support for macOS
10.12 and earlier.

See #712.
2024-01-23 23:44:31 +11:00
Lawrence Warren
ca3c497940
feat(docs): Update references to System Preferences
As of MacOS 13, System Preferences is known as System Settings. This
commit updates all user facing references to System Preferences, using
the new nomenclature.
2022-11-26 12:52:44 +11:00
Dave Nicolson
076514c83a Fix menu alignment on macOS Big Sur and later 2022-08-29 06:42:49 +02:00
Kyle Neideck
d048287140
Fix slider knob sizes.
Also,
 - Update copyright years.
 - Drop support for macOS 10.9.
2022-06-12 14:36:59 +10:00
Kyle Neideck
c89566d212
Merge branch 'gh-actions' 2022-06-12 13:44:12 +10:00
Kyle Neideck
3040a20766
GH Actions: Try to grant BGMApp mic authorization by modifying TCC.db. 2022-05-19 17:24:33 +10:00
Kyle Neideck
30ec1c24b7
GH Actions: Try to fix mic authorization dialog not closing. 2022-05-15 16:04:31 +10:00
Kyle Neideck
909615617a
GH Actions: More logging to help diagnose UI test failures. 2022-05-15 14:49:08 +10:00
Kyle Neideck
89eebb0e02
Show an error message if the user denies input device permissions. 2022-05-15 02:20:58 +10:00
Kyle Neideck
058af733be
Automatically accept the input device permission dialog in UI tests. 2022-05-15 02:06:35 +10:00
Kyle Neideck
7afb8a6c12
GH Actions: Re-enable the UI tests.
GitHub Action's macOS image has been updates and UI tests might work
now: <https://github.com/actions/virtual-environments/pull/5417>.

Also, remove some supporting files/code for CI builds that we don't need
anymore.
2022-05-13 20:53:12 +10:00
adrenalin8231
4608f4bbac add Microsoft Edge to ResponsibleBundleIDsOf 2022-04-18 14:24:29 +09:00
Kyle Neideck
6ef13ed762
Fix an infinite loop in safe_install_dir.sh.
`pwd -P` was returning `//some/path` and the condition
`[[ "${PWD}" == / ]]` would end up as `[[ // == / ]]` and get stuck.
2022-03-31 15:33:43 +11:00
Kyle Neideck
8ddfb81148
Fix compiler warnings in Xcode 13.2. 2022-03-31 15:29:25 +11:00
Muneeb Ahmed
01217d2d8c
Remove python 2 usage 2022-03-30 19:06:35 -07:00
Antoine Cœur
f31aebcf51 spelling 2022-01-21 09:35:16 +08:00
Jon Egan
3bfd68615f added copyright 2022-01-19 07:16:17 -05:00
Jon Egan
24b248e09d Fix for issue #475 dropdown arrows move instead of doing something 2022-01-19 07:01:13 -05:00
Kyle Neideck
a5b7cd69e3
Update the link to the latest SNAPSHOT in the README.
Also, update the copyright year in the UI and in the bundles.
2021-04-03 18:28:01 +11:00
Kyle Neideck
fe786fb338
Merge pull request #464 from marcuswu/fix/issue_457
Fix/issue 459
2021-04-03 00:04:12 +11:00
Marcus Wu
5a5f9d0a8d Use kAppPanNoValue in place of INT_MIN 2021-03-31 14:53:30 -04:00
Marcus Wu
89186d526f Fix comment referencing INT_MAX instead of INT_MIN 2021-03-31 14:45:39 -04:00
Marcus Wu
69fb7f69e3 Fix syntax error 2021-03-31 14:42:42 -04:00
Kyle Neideck
b38f6ddcd6
Reduce noise in the CI logs.
CI builds that use Xcode 12.2 are going over Travis CI's log length
limit and getting killed.
2021-03-31 14:31:08 +11:00
Marcus Wu
e9e13a3056 Fix problem setting pan to -1 2021-03-30 09:42:50 -04:00
Kyle Neideck
3551e0f6e6
Fix uninstall failing when BGMApp has debug symbols.
If you install with `build_and_install.sh`, it leaves debug symbols in
the `Background Music.app` bundle, which makes it a lot larger. That
would trigger a sanity check in the uninstaller and it would refuse to
delete the bundle.
2021-03-30 20:34:51 +11:00
Kyle Neideck
213c339309
Add a bundle ID property for apps in the AppleScript API. 2021-03-25 01:19:46 +11:00
Marcus Wu
a62b783e5f Fix removed synonym 2021-03-23 13:16:12 -04:00
Marcus Wu
44e3e96986
Update comment based on suggestion
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-23 12:09:42 -04:00
Marcus Wu
d9a22d1b62
Update comment based on suggestion
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-23 12:09:29 -04:00
Marcus Wu
ce56a96829
Updated according to suggestions
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-22 20:48:41 -04:00
Marcus Wu
c10ea9d132
Updated according to suggestions
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-22 20:48:20 -04:00
Marcus Wu
64003ca1d6
Updated according to suggestions
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-22 20:47:57 -04:00
Marcus Wu
7df7f062e0
Updated according to suggestions
Co-authored-by: Kyle Neideck <kyle@bearisdriving.com>
2021-03-22 20:47:41 -04:00
Marcus Wu
2090761ae5 Add BGMASApplication to test target 2021-03-19 21:00:39 -04:00
Marcus Wu
c303f60343 Fix licensing text in new files 2021-03-19 20:52:04 -04:00
Marcus Wu
97d3645bd3 Fix main volume changes not showing on slider 2021-03-19 20:44:49 -04:00
Marcus Wu
9765193c1f Added app volume and pan setting to AppleScript 2021-03-19 20:29:36 -04:00
Kyle Neideck
c0ab98b98b
Workaround deadlocks when starting IO on macOS Big Sur.
This works similarly to the workaround in the previous commit, but
avoids the short wait while XPC times out. It still allows some initial
frames to be dropped when IO starts.

See #328, #388 and PR #390.
2020-11-26 00:49:34 +11:00
Kyle Neideck
f24a6cb2f1
Try to avoid using the discrete GPU on multi-GPU systems to save power.
Add NSSupportsAutomaticGraphicsSwitching to BGMApp's Info.plist in the
hopes that it will use the integrated GPU when possible. BGMApp doesn't
need to use the fastest GPU, so it's better to save battery power.

Untested because I don't have the right hardware. (I actually have an
iMac with a discrete GPU, but the integrated GPU seems to be disabled.)

See #284 and
<https://developer.apple.com/library/archive/qa/qa1734/_index.html>.
2020-04-21 14:11:42 +10:00
Kyle Neideck
488ed16dfc
Hopefully fix a segfault caused by BGM_PlayThrough.
Issue #276 reported a segfault that occurred while BGMApp was launching.
It was caused by BGM_PlayThrough's output IOProc when it tried to read
from the ring buffer. I haven't been able to reproduce the problem, so I
don't know whether this commit will actually fix it. Hopefully it will
at least make it easier to diagnose.

This commit adds locking around accesses to the buffer so that the
IOProcs will skip the current IO cycle if it isn't safe to use the ring
buffer. That should only happen during launch or when changing the
output device. (And only if something else has gone wrong.)
2020-04-18 22:00:49 +10:00
Kyle Neideck
23ecf7e46e
Fix BGMDriver and BGMXPCHelper's version strings for SNAPSHOT builds.
And DEBUG builds. The "-SNAPSHOT-abc0123" suffix was only being added to
the version string for BGMApp.
2020-02-09 22:18:52 +11:00
Kyle Neideck
8de821d4aa
Add an archive option (-a) to build_and_install.sh.
Archiving is the standard way to build a release for distribution using
Xcode. package.sh now uses this option when it creates a release
package.

This change is mainly to keep the Run settings in the Xcode schemes from
affecting the release builds, which means we can commit the schemes with
more sensible settings.

Also, disable AddressSanitizer in the BGMDevice scheme, which was
stopping coreaudiod from launching because its sandbox won't allow the
process to load the AddressSanitizer dylib.
2020-02-05 00:09:14 +11:00