newly updated FMODStudio plugin for UE5.3 migration

This commit is contained in:
Ji Yoon Rhee
2025-02-02 00:35:31 +09:00
parent 6ec77258e3
commit 547689631f
296 changed files with 4467 additions and 4042 deletions

View File

@ -13,6 +13,7 @@
<li><a href="user-guide.html">User Guide</a></li>
<li><a href="settings.html">Settings</a></li>
<li><a href="plugins.html">Plugins</a></li>
<li><a href="niagara.html">Niagara Integration</a></li>
<li><a href="api-reference.html">API Reference</a></li>
<li><a href="blueprint-reference.html">Blueprint Reference</a></li>
<li class="manual-current-chapter manual-active-chapter"><a href="platform-specifics.html">Platform Specifics</a><ul>
@ -83,6 +84,7 @@
</li>
<li><a href="#switch">Switch</a><ul>
<li><a href="#packaging_8">Packaging</a></li>
<li><a href="#live-update">Live Update</a></li>
</ul>
</li>
<li><a href="#xbox-one_1">Xbox One</a><ul>
@ -97,15 +99,16 @@
</ul>
</li>
<li><a href="troubleshooting.html">Troubleshooting</a></li>
<li><a href="audiolink.html">AudioLink</a></li>
<li><a href="glossary.html">Glossary</a></li>
</ul>
</div>
<div class="manual-content api">
<h1>7. Platform Specifics</h1>
<h1>8. Platform Specifics</h1>
<p>Some platforms require some extra steps to run properly.</p>
<h2 id="android"><a href="#android">7.1 Android</a></h2>
<h2 id="android"><a href="#android">8.1 Android</a></h2>
<p>To deploy on Android, make sure FMODStudio is in your game's directory, not in the Engine plugins directory. When FMODStudio is in your game's plugin directory, the engine will rebuild the plugin for Android and deploy all the files properly.</p>
<h3 id="deployment-of-android-plugins"><a href="#deployment-of-android-plugins">7.1.1 Deployment of Android plugins</a></h3>
<h3 id="deployment-of-android-plugins"><a href="#deployment-of-android-plugins">8.1.1 Deployment of Android plugins</a></h3>
<p>FMOD supports DSP plugins, which will be stand-alone .so files that will need to be packaged into the build. Add the .so file into the <code>FMODStudio/Binaries/Android/{Architecture}</code> directory. Unreal will also need an APL file so it knows to package the .so file. To do this, you will need to write an APL file and drop it into the <code>FMODStudio/Binaries/Android</code> directory. The FMODStudio.build.cs file looks for any file ending with "_APL.xml" and will pass that along to the unreal build tool for packaging.</p>
<p>The APL is a custom xml file format which is documented in the engine file AndroidPluginLanguage.cs. Here is a sample APL file for libovrfmod.so:</p>
<div class="highlight language-xml"><pre><span></span><span class="cp">&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;</span>
@ -132,7 +135,7 @@
</pre></div>
<p>You only need to write this if you want to load a DSP plugin on Android.</p>
<h3 id="packaging"><a href="#packaging">7.1.2 Packaging</a></h3>
<h3 id="packaging"><a href="#packaging">8.1.2 Packaging</a></h3>
<p>Banks for Android are expected to be located in the <code>Mobile</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the Android banks add these lines to <code>Platforms\Android\Config\AndroidGame.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -144,10 +147,10 @@
<p><strong>4.24</strong><br />
The location of <code>AndroidGame.ini</code> is <code>Config\Android\AndroidGame.ini</code></p>
</div>
<h3 id="android-based-vr-devices"><a href="#android-based-vr-devices">7.1.3 Android-based VR devices</a></h3>
<h3 id="android-based-vr-devices"><a href="#android-based-vr-devices">8.1.3 Android-based VR devices</a></h3>
<p>Any platform specific requirements for Android also apply to Android-based VR devices, such as Oculus Quest.</p>
<h2 id="game-core"><a href="#game-core">7.2 Game Core</a></h2>
<h3 id="xbox-series-xs"><a href="#xbox-series-xs">7.2.1 Xbox Series X|S</a></h3>
<h2 id="game-core"><a href="#game-core">8.2 Game Core</a></h2>
<h3 id="xbox-series-xs"><a href="#xbox-series-xs">8.2.1 Xbox Series X|S</a></h3>
<h4 id="enabling-live-update"><a href="#enabling-live-update">Enabling Live Update</a></h4>
<p>To enable Live Update the Unreal XSX project settings must be modified to allow FMOD to open the Live Update port from the running game. Access the settings by opening the <strong>Project Settings</strong> editor from the <strong>Edit</strong> menu, then navigate to Xbox Series X|S platform settings. Under the <strong>Development</strong> category, add the following entry to the <strong>Debug Network Ports</strong> setting:<br />
<img alt="Settings" src="images/gdk-enable-liveupdate.png" /></p>
@ -208,7 +211,7 @@ AudioDeviceModuleName=
AudioMixerModuleName=
</pre></div>
<h3 id="xbox-one"><a href="#xbox-one">7.2.2 Xbox One</a></h3>
<h3 id="xbox-one"><a href="#xbox-one">8.2.2 Xbox One</a></h3>
<h4 id="enabling-live-update_1"><a href="#enabling-live-update_1">Enabling Live Update</a></h4>
<p>To enable Live Update the Unreal Xbox One GDK project settings must be modified to allow FMOD to open the Live Update port from the running game. Access the settings by opening the <strong>Project Settings</strong> editor from the <strong>Edit</strong> menu, then navigate to Xbox One GDK platform settings. Under the <strong>Development</strong> category, add the following entry to the <strong>Debug Network Ports</strong> setting:<br />
<img alt="Settings" src="images/gdk-enable-liveupdate.png" /></p>
@ -292,7 +295,7 @@ AudioDeviceModuleName=
AudioMixerModuleName=
</pre></div>
<h3 id="desktop"><a href="#desktop">7.2.3 Desktop</a></h3>
<h3 id="desktop"><a href="#desktop">8.2.3 Desktop</a></h3>
<h4 id="packaging_3"><a href="#packaging_3">Packaging</a></h4>
<p>Banks for Game Core Desktop are expected to be located in the <code>Desktop</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>The Unreal Build Tool will block packaging of the <code>Desktop</code> directory unless it is explicitly whitelisted. To whitelist the directory add the following lines to the appropriate Unreal config file from the table below e.g. <code>Platforms\WinGDK\Config\WinGDKGame.ini</code>, replacing <code>MyGame</code> with your project's name:</p>
@ -330,8 +333,8 @@ AudioMixerModuleName=
+AllowedDirectories=MyGame/Content/FMOD/Desktop
</pre></div>
<h2 id="ios"><a href="#ios">7.3 iOS</a></h2>
<h3 id="packaging_4"><a href="#packaging_4">7.3.1 Packaging</a></h3>
<h2 id="ios"><a href="#ios">8.3 iOS</a></h2>
<h3 id="packaging_4"><a href="#packaging_4">8.3.1 Packaging</a></h3>
<p>Banks for iOS are expected to be located in the <code>Mobile</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the iOS banks from the <code>Mobile</code> sub-directory, add these lines to <code>Platforms\IOS\Config\IOSGame.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -350,7 +353,7 @@ AudioMixerModuleName=
+AllowedDirectories=cookeddata/mygame/content/fmod/desktop
</pre></div>
<h3 id="disabling-the-unreal-audio-device_2"><a href="#disabling-the-unreal-audio-device_2">7.3.2 Disabling the Unreal Audio Device</a></h3>
<h3 id="disabling-the-unreal-audio-device_2"><a href="#disabling-the-unreal-audio-device_2">8.3.2 Disabling the Unreal Audio Device</a></h3>
<p>FMOD will not work with inbuilt Unreal audio on iOS. You will need to disable the Unreal Audio Device by creating a new file <code>Config\IOS\IOSEngine.ini</code> with this section:</p>
<div class="highlight language-text"><pre><span></span>[Audio]
AudioDeviceModuleName=
@ -361,14 +364,14 @@ AudioMixerModuleName=
<p><strong>4.24</strong><br />
The location of <code>IOSGame.ini</code> is <code>Config\IOS\IOSGame.ini</code></p>
</div>
<h3 id="building-for-ios-on-windows"><a href="#building-for-ios-on-windows">7.3.3 Building for iOS on Windows</a></h3>
<h3 id="building-for-ios-on-windows"><a href="#building-for-ios-on-windows">8.3.3 Building for iOS on Windows</a></h3>
<p>Using remote build to build for iOS on Windows using the FMOD Studio plugin requires some additional files to be copied to the remote Mac. To tell Unreal to copy the additional files add a file named <code>RsyncProject.txt</code> to the directory <code>&lt;ue_project_root&gt;/Build/Rsync</code> (you may need to create this directory). The <code>RsyncProject.txt</code> file needs to contain this line:</p>
<div class="highlight language-text"><pre><span></span>+ /Plugins/FMODStudio/Binaries/IOS/**
</pre></div>
<h2 id="tvos"><a href="#tvos">7.4 tvOS</a></h2>
<h2 id="tvos"><a href="#tvos">8.4 tvOS</a></h2>
<p>To build for tvOS, make sure FMODStudio is in your game's directory and not in the Engine plugins directory.</p>
<h3 id="packaging_5"><a href="#packaging_5">7.4.1 Packaging</a></h3>
<h3 id="packaging_5"><a href="#packaging_5">8.4.1 Packaging</a></h3>
<p>Banks for tvOS are expected to be located in the <code>Mobile</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the correct banks add these lines to <code>Platforms\TVOS\Config\TVOSGame.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -380,15 +383,15 @@ The location of <code>IOSGame.ini</code> is <code>Config\IOS\IOSGame.ini</code><
<p><strong>4.24</strong><br />
The location of <code>TVOSGame.ini</code> is <code>Config\TVOS\TVOSGame.ini</code></p>
</div>
<h3 id="disabling-the-unreal-audio-device_3"><a href="#disabling-the-unreal-audio-device_3">7.4.2 Disabling the Unreal Audio Device</a></h3>
<h3 id="disabling-the-unreal-audio-device_3"><a href="#disabling-the-unreal-audio-device_3">8.4.2 Disabling the Unreal Audio Device</a></h3>
<p>FMOD will not work with inbuilt Unreal audio on tvOS. You will need to disable the Unreal Audio Device by creating a new file <code>Config\TVOS\TVOSEngine.ini</code> with this section:</p>
<div class="highlight language-text"><pre><span></span>[Audio]
AudioDeviceModuleName=
AudioMixerModuleName=
</pre></div>
<h2 id="linux"><a href="#linux">7.5 Linux</a></h2>
<p>To deploy on linux, you will need to rebuild the engine from source via github. For compiling linux from windows, see this <a href="https://wiki.unrealengine.com/Compiling_For_Linux">page</a> for instructions how to get up and running with Unreal. Then, add in both the fmodstudio linux .zip and windows .zip on top of each other into the engine plugins directory.</p>
<h2 id="linux"><a href="#linux">8.5 Linux</a></h2>
<p>To deploy on linux, you will need to rebuild the engine from source via github. For compiling linux from windows, see this <a href="https://docs.unrealengine.com/linux-development-requirements-for-unreal-engine">page</a> for instructions how to get up and running with Unreal. Then, add in both the fmodstudio linux .zip and windows .zip on top of each other into the engine plugins directory.</p>
<p>The last thing you will need to do is to get the FMOD .so libraries into a directory that the executable can read them. The easiest way is to copy them from</p>
<div class="highlight language-text"><pre><span></span>&lt;DeployedDir&gt;\Engine\Plugins\FMODStudio\Binaries\Linux\x86_64
</pre></div>
@ -398,13 +401,16 @@ AudioMixerModuleName=
</pre></div>
<p>To see what directories the .so files can be located, look at LinuxToolChain.cs. Currently there are only a set of hard coded directories that are supported.</p>
<h2 id="macos"><a href="#macos">7.6 macOS</a></h2>
<p>To make a packaged build runnable on your local machine, execute the following command from the command shell :</p>
<h2 id="macos"><a href="#macos">8.6 macOS</a></h2>
<div class="admonition warning">
<p>This has been solved in UE 4.27 and above, the following is only required if you are using an older version of Unreal.</p>
</div>
<p>To make a packaged build runnable on your local machine, execute the following command from the command shell:</p>
<div class="highlight language-text"><pre><span></span>install_name_tool -add_rpath @executable_path/../Unreal/YourGame/Plugins/FMODStudio/Libs/Mac /Path/To/YourGame.app/Contents/MacOS/YourGame
</pre></div>
<h2 id="ps4"><a href="#ps4">7.7 PS4</a></h2>
<h3 id="packaging_6"><a href="#packaging_6">7.7.1 Packaging</a></h3>
<h2 id="ps4"><a href="#ps4">8.7 PS4</a></h2>
<h3 id="packaging_6"><a href="#packaging_6">8.7.1 Packaging</a></h3>
<p>Banks for the PS4 are expected to be located in the <code>PS4</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the PS4 specific banks add these lines to <code>Platforms\PS4\Config\PS4Game.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -412,8 +418,8 @@ AudioMixerModuleName=
+DirectoriesToAlwaysStageAsNonUFS=(Path=&quot;FMOD/PS4&quot;)
</pre></div>
<h2 id="ps5"><a href="#ps5">7.8 PS5</a></h2>
<h3 id="packaging_7"><a href="#packaging_7">7.8.1 Packaging</a></h3>
<h2 id="ps5"><a href="#ps5">8.8 PS5</a></h2>
<h3 id="packaging_7"><a href="#packaging_7">8.8.1 Packaging</a></h3>
<p>Banks for the PS5 are expected to be located in the <code>PS5</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the PS5 specific banks add these lines to <code>Platforms\PS5\Config\PS5Game.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -421,7 +427,7 @@ AudioMixerModuleName=
+DirectoriesToAlwaysStageAsNonUFS=(Path=&quot;FMOD/PS5&quot;)
</pre></div>
<h3 id="using-controller-vibration"><a href="#using-controller-vibration">7.8.2 Using Controller Vibration</a></h3>
<h3 id="using-controller-vibration"><a href="#using-controller-vibration">8.8.2 Using Controller Vibration</a></h3>
<p>To enable vibration for the PS5 controller add these lines to <code>Config\PS5\PS5Engine.ini</code>:</p>
<h4 id="unreal-engine-4"><a href="#unreal-engine-4">Unreal Engine 4</a></h4>
<div class="highlight language-text"><pre><span></span>[/Script/Engine.InputSettings]
@ -433,17 +439,17 @@ AdvancedVibrationMode=true
bAdvancedVibrationMode=true
</pre></div>
<h3 id="disabling-the-unreal-audio-device_4"><a href="#disabling-the-unreal-audio-device_4">7.8.3 Disabling the Unreal Audio Device</a></h3>
<h3 id="disabling-the-unreal-audio-device_4"><a href="#disabling-the-unreal-audio-device_4">8.8.3 Disabling the Unreal Audio Device</a></h3>
<p>FMOD will not work with built-in Unreal audio on PS5 without some engine modification. In most cases you should disable the Unreal Audio Device by adding/editing <code>Config\PS5\PS5Engine.ini</code> with the following section:</p>
<div class="highlight language-text"><pre><span></span>[Audio]
AudioDeviceModuleName=
AudioMixerModuleName=
</pre></div>
<h3 id="enabling-built-in-unreal-audio-alongside-fmod"><a href="#enabling-built-in-unreal-audio-alongside-fmod">7.8.4 Enabling built-in Unreal audio alongside FMOD</a></h3>
<h3 id="enabling-built-in-unreal-audio-alongside-fmod"><a href="#enabling-built-in-unreal-audio-alongside-fmod">8.8.4 Enabling built-in Unreal audio alongside FMOD</a></h3>
<p>See this <a href="https://qa.fmod.com/t/unreal-video-playback-with-audio-on-ps5/16555">forum post</a> for details.</p>
<h2 id="switch"><a href="#switch">7.9 Switch</a></h2>
<h3 id="packaging_8"><a href="#packaging_8">7.9.1 Packaging</a></h3>
<h2 id="switch"><a href="#switch">8.9 Switch</a></h2>
<h3 id="packaging_8"><a href="#packaging_8">8.9.1 Packaging</a></h3>
<p>Banks for the Switch are expected to be located in the <code>Switch</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the Switch specific banks add these lines to <code>Platforms\Switch\Config\SwitchGame.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -451,18 +457,24 @@ AudioMixerModuleName=
+DirectoriesToAlwaysStageAsNonUFS=(Path=&quot;FMOD/Switch&quot;)
</pre></div>
<h2 id="xbox-one_1"><a href="#xbox-one_1">7.10 Xbox One</a></h2>
<h3 id="enabling-xboxone-microphone-input"><a href="#enabling-xboxone-microphone-input">7.10.1 Enabling XboxOne Microphone Input</a></h3>
<p>To enable FMOD Studio the use of any microphone input, including Kinect, on the Xbox One. The Engine ini file specific for the platform, located in '/Config/XboxOne/XboxOneEngine.ini', needs to have the following lines added:</p>
<h3 id="live-update"><a href="#live-update">8.9.2 Live Update</a></h3>
<p>If Live Update has been enabled in the FMOD for Unreal Settings, the integration will attempt to open a port on the Dev Kit for FMOD Studio to connect to.</p>
<p>If the integration is unsuccessful it will print out the reason to the logs, otherwise you will see the IP address used in the log:</p>
<div class="highlight language-text"><pre><span></span>IP address: 192.168.1.189
</pre></div>
<h2 id="xbox-one_1"><a href="#xbox-one_1">8.10 Xbox One</a></h2>
<h3 id="enabling-xboxone-microphone-input"><a href="#enabling-xboxone-microphone-input">8.10.1 Enabling XboxOne Microphone Input</a></h3>
<p>To enable FMOD Studio the use of any microphone input, including Kinect, on the Xbox One. The Engine ini file specific for the platform, located in <code>/Config/XboxOne/XboxOneEngine.ini</code>, needs to have the following lines added:</p>
<div class="highlight language-xml"><pre><span></span>[AppxManifest]
Package.Capabilities.mx:Capability[0].Name=kinectAudio
Package.Capabilities.mx:Capability[1].Name=kinectGamechat
</pre></div>
<h3 id="enabling-live-update_2"><a href="#enabling-live-update_2">7.10.2 Enabling Live Update</a></h3>
<h3 id="enabling-live-update_2"><a href="#enabling-live-update_2">8.10.2 Enabling Live Update</a></h3>
<p>To enable Live Update the Unreal Xbox One project settings must be modified to allow FMOD to open the Live Update port from the running game. Access the settings by opening the <strong>Project Settings</strong> editor from the <strong>Edit</strong> menu, then navigate to Xbox One platform settings. Under the <strong>Network</strong> category, add the following entries to the <strong>Secure Socket Descriptions</strong> and <strong>Secure Socket Associations</strong> settings:<br />
<img alt="Settings" src="images/xboxone-enable-liveupdate.png" /></p>
<h3 id="packaging_9"><a href="#packaging_9">7.10.3 Packaging</a></h3>
<h3 id="packaging_9"><a href="#packaging_9">8.10.3 Packaging</a></h3>
<p>Banks for the Xbox One are expected to be located in the <code>XboxOne</code> sub-directory of the Studio built banks output directory. This sub-directory name is hardcoded in the integration so if you want to use a different location you would need to modify the integration source code.</p>
<p>To package the Xbox One specific banks add these lines to <code>Platforms\XboxOne\Config\XboxOneGame.ini</code>:</p>
<div class="highlight language-text"><pre><span></span>[/Script/UnrealEd.ProjectPackagingSettings]
@ -470,14 +482,14 @@ Package.Capabilities.mx:Capability[1].Name=kinectGamechat
+DirectoriesToAlwaysStageAsNonUFS=(Path=&quot;FMOD/XboxOne&quot;)
</pre></div>
<h3 id="disabling-the-unreal-audio-device_5"><a href="#disabling-the-unreal-audio-device_5">7.10.4 Disabling the Unreal Audio Device</a></h3>
<h3 id="disabling-the-unreal-audio-device_5"><a href="#disabling-the-unreal-audio-device_5">8.10.4 Disabling the Unreal Audio Device</a></h3>
<p>FMOD will not work with inbuilt Unreal audio on Xbox One. You will need to disable the Unreal Audio Device by creating a new file <code>Config\XboxOne\XboxOneEngine.ini</code> with this section:</p>
<div class="highlight language-text"><pre><span></span>[Audio]
AudioDeviceModuleName=
AudioMixerModuleName=
</pre></div>
<h3 id="copying-dlls-to-build"><a href="#copying-dlls-to-build">7.10.5 Copying dll's to build</a></h3>
<h3 id="copying-dlls-to-build"><a href="#copying-dlls-to-build">8.10.5 Copying dll's to build</a></h3>
<div class="admonition warning">
<p>This has been solved in 2.01.07, you only need to follow these steps if you are using an older version.</p>
</div>
@ -542,7 +554,7 @@ if (FMODDLLPath != null)
// FMOD code end
</pre></div>
<h3 id="submission-validator"><a href="#submission-validator">7.10.6 Submission Validator</a></h3>
<h3 id="submission-validator"><a href="#submission-validator">8.10.6 Submission Validator</a></h3>
<p>The XboxOne validaition tool uses <code>_NT_SYMBOL_PATH</code> environment variable to know where to look for PDBs.<br />
In 'XboxOnePlatform.Automation.cs' is where Unreal overrides _NT_SYMBOL_PATH:</p>
<div class="highlight language-text"><pre><span></span>EnvironmentVariables.Add(&quot;_NT_SYMBOL_PATH&quot;, Params.GetProjectBinariesPathForPlatform(UnrealTargetPlatform.XboxOne).ToString());
@ -557,7 +569,7 @@ EnvironmentVariables.Add(&quot;_NT_SYMBOL_PATH&quot;, SymbolPath);
<p>Then, on your build machine you need to set the value of <code>_NT_SYMBOL_PATH</code> to where the FMOD PDBs will be.<br />
Eg. "[MyGame]\Plugins\FMODStudio\Binaries\XBoxOne" or "[MyGame]\Platforms\XboxOne\Plugins\FMODStudio\Binaries".</p></div>
<p class="manual-footer">Unreal Integration 2.02.14 (2023-05-03). &copy; 2023 Firelight Technologies Pty Ltd.</p>
<p class="manual-footer">Unreal Integration 2.02.26 (2024-12-11). &copy; 2024 Firelight Technologies Pty Ltd.</p>
</body>
</html>