Skip to content
Snippets Groups Projects
Commit 6c336249 authored by Joseph Walton-Rivers's avatar Joseph Walton-Rivers
Browse files

document both audio module options

parent 1d90b6ad
No related branches found
No related tags found
No related merge requests found
Pipeline #3929 canceled
......@@ -37,6 +37,7 @@ namespace fggl::audio {
void play(const AudioClipShort & /*clip*/, bool /*looping = false*/) override;
};
//! A dummy audio module that does nothing
struct NullAudio {
constexpr static const char *name = "fggl::audio::NULL";
constexpr static const std::array<modules::ServiceName, 1> provides = {
......
......@@ -33,6 +33,7 @@ namespace fggl::audio {
constexpr auto OGG_VORBIS = assets::AssetType::make("audio/vorbis");
constexpr auto RES_OGG_VORBIS = assets::from_mime("audio/vorbis");
//! an audio module which uses openal(-soft) as a backend.
struct OpenAL {
constexpr static const char *name = "fggl::audio::OpenAL";
constexpr static const std::array<modules::ServiceName, 1> provides = {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment