Table des matières
-
Lessons
While using a replica of an audio file with different settings can minimize performance usage, having a completely new sound can be favorable. One solution could be to follow the previous steps of excluding a clip and including another, but this would also mean that you’d have two different audio structures to modify. To preserve your audio structure settings, you can replace an audio file with another for a specific platform using the Contents Editor. This way, you can still have custom Conversion Settings or trim the sound differently, while retaining the same behavior, position, and so on. Let’s now add another Windmill Machine sound SFX for mobile, set a new Conversion Setting ShareSet and trim it.
-
In the Platform Selector, make sure Android is selected.
-
In the Project Explorer, expand Actor-Mixer Hierarchy > Default Work Unit > World > Ambient > Ambiences > Ambiences_Emitters > Emitters > Ambient_Windmill and select Windmill_Machine.
-
At the bottom of the Object Tab, ensure that Contents is selected, then right-click the audio source and select Copy.
-
Right-click it again and select Paste.
You now have two versions of the same audio source. Let’s rename the new audio source to ease the distinction when performing changes.
-
In the Name column, rename the new audio source to BAS_WindmillMachine_Trimmed.
When you have not unlinked any audio structures, the changes you perform will be applied to all platforms. The BAS_WindmillMachine_Original will be the primary Audio Source, but on Android an exception should be made and the BAS_WindmillMachine_Trimmed should be used. As such, you will now Unlink and select the BAS_WindmillMachine_Trimmed on Android.
-
Right-click the Unlink indicator in the top of the Use column and select Unlink.
-
Because the Contents Editor is unlinked for this platform, set the BAS_WindmillMachine_Trimmed to Use.
-
At the bottom of the Object Tab, click Source to open the Source Editor.
Let’s trim the audio source down to approximately 5 seconds.
-
Drag the Trim End left until you reach approx. 00:05.000.
You can also have specific Conversion Settings for a given audio source. Let’s select a different Conversion Settings Shareset for this audio source.
-
In the Source Editor, select the Conversion tab.
-
Enable Override Parent to ignore the Conversion Settings outside the Source Editor.
-
Using the Selector, select the Objects > Objects_General Conversion Settings ShareSet.
Notice that the converted file size is significantly smaller than the original.