Plutonium framework API 0.3.0
UI framework libraries for libnx
Loading...
Searching...
No Matches
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
18namespace 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}
void PlaySfx(Sfx sfx)
Sfx LoadSfx(const std::string &path)
void DestroySfx(Sfx &sfx)
Definition audio_Music.hpp:18