Markus Prettner 384b580a21 Update usages of AZ_CRC macro with 1 parameter | 5 months ago | |
---|---|---|
.. | ||
3rdParty | 11 months ago | |
Code | 5 months ago | |
Registry | 11 months ago | |
.gitignore | 11 months ago | |
CMakeLists.txt | 11 months ago | |
README.md | 11 months ago | |
gem.json | 11 months ago | |
preview.png | 11 months ago |
This is an integration of https://miniaud.io/ into Open 3D Engine as a Gem. It has the most fundamental features working already: sound playback, sound positioning, and listener positioning. One can test the sounds in the Editor viewport without entering game mode.
MiniAudio supports more formats, but not all are supported in this Gem yet.
The following nodes are exposed to scripting.
Gem::MiniAudio.API
:
BUILD_DEPENDENCIES
PUBLIC
...
Gem::MiniAudio.API
cpp
#include <MiniAudio/MiniAudioPlaybackBus.h>
cpp
MiniAudio::MiniAudioPlaybackRequestBus::Event(GetEntityId(), &MiniAudio::MiniAudioPlaybackRequestBus::Events::Play);
cpp
if (auto bus = MiniAudio::MiniAudioPlaybackRequestBus::FindFirstHandler(GetEntityId()))
{
bus->Play();
}
cpp
static void GetRequiredServices(AZ::ComponentDescriptor::DependencyArrayType& required)
{
required.push_back(AZ_CRC_CE("MiniAudioPlaybackComponent"));
}
See the LICENSE files at the root of the engine.
Uses 3rd party components under their own license: