Sounds
C++ FMODCore#
UNIGINE integration with FMOD Core (before running this sample, please download FMOD x64 libraries from the official web-site: https://www.fmod.com/download).
C++ FMODStudio#
UNIGINE integration with FMOD Studio (before running this sample, please download FMOD x64 libraries from the official web-site: https://www.fmod.com/download).
C# FMODCore#
UNIGINE integration with FMOD Core (before running this sample, please download FMOD x64 libraries from the official web-site: https://www.fmod.com/download).
C# FMODStudio#
UNIGINE integration with FMOD Studio (before running this sample, please download FMOD x64 libraries from the official web-site: https://www.fmod.com/download).
Integrating C++ Samples into Your Project#
Integrating the FMODCore or FMODStudio C++ samples into your project requires you to perform the following steps:
- Create a C++ (CMake) project with the FMOD Plugin support via SDK Browser.
- Copy the following files from the sample project to your project:
- The FMODCore.cpp or FMODStudio.cpp source file — to the source\ folder.
- Files from the sample data\ folder — to the data\ folder.
- Copy the resources folder from the <Unigine SDK>\source\samples\common to the data folder of your project.
- Delete the resources.umount file from the project data folder.
- Edit the source/CMakeList.txt file of your project. Replace the following lines:
with this (for the FMODCore sample):
add_executable(${target} ${CMAKE_CURRENT_LIST_DIR}/AppEditorLogic.cpp ${CMAKE_CURRENT_LIST_DIR}/AppEditorLogic.h ${CMAKE_CURRENT_LIST_DIR}/AppSystemLogic.cpp ${CMAKE_CURRENT_LIST_DIR}/AppSystemLogic.h ${CMAKE_CURRENT_LIST_DIR}/AppWorldLogic.cpp ${CMAKE_CURRENT_LIST_DIR}/AppWorldLogic.h ${CMAKE_CURRENT_LIST_DIR}/main.cpp )
or this (for the FMODStudio sample):add_executable(${target} ${CMAKE_CURRENT_LIST_DIR}/FMODCore.cpp )
add_executable(${target} ${CMAKE_CURRENT_LIST_DIR}/FMODStudio.cpp )
- Add the FMOD libraries to the project bin folder according to the instructions.
- Open your project in MS Visual Studio. Check this tutorial for more details, if necessary.
- If necessary, click Project → CMake Cache → Delete Cache in the Main menu.
- Click Project → Configure to configure the project.
- Click Build → Build All to build the project.
- Run your project with the FMOD plugin — specify it as an argument of the extern_plugin command line option on the application start-up.
Last update:
2023-12-19
Help improve this article
Was this article helpful?
(or select a word/phrase and press Ctrl+Enter)