Plutonium framework API 1.0.0
Easy-to-use, SDL2-based UI framework for Nintendo Switch homebrew
Loading...
Searching...
No Matches
audio_Audio.hpp
Go to the documentation of this file.
1/**
2 * Plutonium library
3 * @file audio_Audio.hpp
4 * @brief Main audio header
5 * @author XorTroll
6 * @copyright XorTroll
7*/
8
9#pragma once
10#include <pu/audio/audio_Music.hpp>
11#include <pu/audio/audio_Sfx.hpp>
12
13namespace pu::audio {
14
15 /**
16 * @brief Complete set of flags to initialize the audio system with: supports FLAC, MOD, MP3 and OGG formats.
17 */
18 constexpr i32 MixerAllFlags = MIX_INIT_FLAC | MIX_INIT_MOD | MIX_INIT_MP3 | MIX_INIT_OGG;
19
20 /**
21 * @brief Initializes the underlying audio system (SDL2-Mixer) with the specified flags.
22 * @param mix_flags Flags to initialize the audio system with.
23 * @return Whether the audio system was initialized successfully.
24 */
25 bool Initialize(i32 mix_flags);
26
27 /**
28 * @brief Finalizes the underlying audio system (SDL2-Mixer).
29 */
30 void Finalize();
31
32}
void Finalize()
Finalizes the underlying audio system (SDL2-Mixer).
constexpr i32 MixerAllFlags
Complete set of flags to initialize the audio system with: supports FLAC, MOD, MP3 and OGG formats.
Definition audio_Audio.hpp:18
bool Initialize(i32 mix_flags)
Initializes the underlying audio system (SDL2-Mixer) with the specified flags.
Definition audio_Audio.hpp:13