ft2-clone

Fasttracker 2 clone
Log | Files | Refs | README | LICENSE

commit d67ca909b1cb62be293f40e33d60679defb7f42d
parent 48da1fbedb5db4c173875542774f13b93b7b44a1
Author: Olav Sørensen <olav.sorensen@live.no>
Date:   Fri, 18 Mar 2022 22:28:36 +0100

Fix broken audio sampling on macOS

Diffstat:
Aft2-clone.entitlements | 8++++++++
Mmake-macos.sh | 1+
Mrelease/macos/ft2-clone-macos.app/Contents/Info.plist | 2++
3 files changed, 11 insertions(+), 0 deletions(-)

diff --git a/ft2-clone.entitlements b/ft2-clone.entitlements @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> +<plist version="1.0"> +<dict> + <key>com.apple.security.device.audio-input</key> + <true/> +</dict> +</plist> diff --git a/make-macos.sh b/make-macos.sh @@ -72,6 +72,7 @@ rm $TARGET_X86_64 rm $TARGET_ARM64 strip $TARGET_UNIVERSAL install_name_tool -change @rpath/SDL2.framework/Versions/A/SDL2 @executable_path/../Frameworks/SDL2.framework/Versions/A/SDL2 $TARGET_UNIVERSAL +codesign -s - --entitlements pt2-clone.entitlements release/macOS/pt2-clone-macos.app echo Done. The executable can be found in \'${RELEASE_MACOS_DIR}\' if everything went well. # diff --git a/release/macos/ft2-clone-macos.app/Contents/Info.plist b/release/macos/ft2-clone-macos.app/Contents/Info.plist @@ -129,5 +129,7 @@ https://16-bits.org</string> <true/> <key>NSHighResolutionCapable</key> <true/> + <key>NSMicrophoneUsageDescription</key> + <string>This program needs access to your audio device.</string> </dict> </plist>