Plutonium framework API  0.3
Simple UI framework for libnx and SDL2
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 <string>
17 
18 namespace pu::audio
19 {
20  typedef Mix_Chunk *Sfx;
21 
22  Sfx Load(std::string Path);
23  void Play(Sfx Sfx);
24  void DeleteSfx(Sfx Sfx);
25 }
Sfx Load(std::string Path)
void DeleteSfx(Sfx Sfx)
Mix_Chunk * Sfx
Definition: audio_Sfx.hpp:20
void Play(Music Mus, int Loops)
Definition: audio_Music.hpp:18