From 321bc59ffa58fb3ce88605d38ccc3b4ba4187daa Mon Sep 17 00:00:00 2001 From: Parth Mishra Date: Wed, 1 Jun 2022 09:35:31 -0400 Subject: [PATCH] Add instructions for using FFmpeg for HLE AAC decoding on macOS --- Building-for-macOS.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Building-for-macOS.md b/Building-for-macOS.md index 6237004..885f097 100644 --- a/Building-for-macOS.md +++ b/Building-for-macOS.md @@ -9,6 +9,8 @@ You'll need to download and install the following to build Citra: * [CMake](https://cmake.org/) (`brew install cmake`) * [OpenSSL](https://www.openssl.org) (`brew install openssl`) * A recent version of Xcode and the Xcode command line tools +* **Optional dependencies**: + * [FFmpeg](https://www.ffmpeg.org/download.html#build-mac) 4.0+ is needed for HLE AAC Decoding on macOS (`brew install ffmpeg`) ### Cloning Citra in Git: @@ -31,6 +33,7 @@ mkdir build cd build cmake .. -DCMAKE_OSX_ARCHITECTURES="x86_64;x86_64h" -DCMAKE_BUILD_TYPE=Release ``` + * To enable HLE AAC Decoding, include the cmake flag `-DENABLE_FFMPEG_AUDIO_DECODER=ON` (make sure FFmpeg is installed first.) This builds a fat binary that has slices targeting early and late x64 machines. @@ -52,4 +55,5 @@ A few things to note are: * When running the cmake command, you'll want to use this command instead: ``` cmake .. -DCMAKE_OSX_ARCHITECTURES="arm64" -DCMAKE_BUILD_TYPE=Release -``` \ No newline at end of file +``` +You can similarly enable HLE AAC decoding by appending the flag `-DENABLE_FFMPEG_AUDIO_DECODER=ON` to the cmake command. \ No newline at end of file