# Plutonium framework API: Plutonium/include/pu/audio/audio_Sfx.hpp Source File

audio_Sfx.hpp
Go to the documentation of this file.
/*
Plutonium library
@file audio_Sfx.hpp
@brief Sfx (sound effects) support
@author XorTroll
@copyright Plutonium project - an easy-to-use UI framework for Nintendo Switch homebrew
*/
#pragma once
#include <SDL2/SDL_mixer.h>
#include <pu/pu_Include.hpp>
namespace pu::audio {
using Sfx = Mix_Chunk*;
Sfx LoadSfx(const std::string &path);
void PlaySfx(Sfx sfx);
void DestroySfx(Sfx &sfx);
}
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