| 1 |
## fmod |
| 2 |
|
| 3 |
This service links your project with https://castle-engine.io/fmod[FMOD] on iOS. |
| 4 |
|
| 5 |
### Declare in CastleEngineManifest.xml |
| 6 |
|
| 7 |
Declare it like this in link:https://castle-engine.io/project_manifest[CastleEngineManifest.xml]: |
| 8 |
|
| 9 |
[source,xml] |
| 10 |
---- |
| 11 |
<?xml version="1.0" encoding="utf-8"?> |
| 12 |
<project name="..." game_units="..."> |
| 13 |
<ios> |
| 14 |
<services> |
| 15 |
<service name="fmod"> |
| 16 |
<parameter key="library_path" value="fmod-ios-library" /> |
| 17 |
</service> |
| 18 |
</services> |
| 19 |
</ios> |
| 20 |
</project> |
| 21 |
---- |
| 22 |
|
| 23 |
The `library_path` parameter is the location of the FMOD for iOS library. You need to download it from https://www.fmod.com/ yourself. We expect to find in this directory a file `libfmod_iphoneos.a`. |
| 24 |
|
| 25 |
### Use FMOD sound backend from Pascal |
| 26 |
|
| 27 |
Use `CastleFMODSoundBackend` unit and call `UseFMODSoundBackend`. |
| 28 |
|
| 29 |
That's it, now all our sound API (see https://castle-engine.io/manual_sound.php[manual about sound]) uses FMOD under the hood. |
| 30 |
|
| 31 |
See https://castle-engine.io/fmod[FMOD docs] for more details. |