Plutonium framework API 0.3.0 UI framework libraries for libnx

audio_Sfx.hpp
Go to the documentation of this file.
1
2/*
3
4 Plutonium library
5
6 @file audio_Sfx.hpp
7 @brief Sfx (sound effects) support
8 @author XorTroll
9
10 @copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
11
12*/
13
14#pragma once
15#include <SDL2/SDL_mixer.h>
16#include <pu/pu_Include.hpp>
17
18 namespace pu::audio {
19
20 using Sfx = Mix_Chunk*;
21
22 Sfx LoadSfx(const std::string &path);
23 void PlaySfx(Sfx sfx);
24 void DestroySfx(Sfx &sfx);
25
26}
pu::audio
Definition: audio_Music.hpp:18
pu::audio::Sfx
Mix_Chunk * Sfx
Definition: audio_Sfx.hpp:20
pu::audio::PlaySfx
void PlaySfx(Sfx sfx)
pu::audio::LoadSfx
Sfx LoadSfx(const std::string &path)
pu::audio::DestroySfx
void DestroySfx(Sfx &sfx)
pu_Include.hpp