Steve Pham 26baf4a0e5 Fix error using $<TARGET_OBJECTS...> with cmake 3.28.3 (#17605) | 9 달 전 | |
---|---|---|
.. | ||
3rdParty | 11 달 전 | |
Code | 9 달 전 | |
Registry | 11 달 전 | |
.gitignore | 11 달 전 | |
CMakeLists.txt | 11 달 전 | |
README.md | 11 달 전 | |
gem.json | 11 달 전 | |
preview.png | 11 달 전 |
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: