Plutonium framework API 0.3.0
UI framework libraries for libnx
Loading...
Searching...
No Matches
audio_Music.hpp
Go to the documentation of this file.
1
2/*
3
4 Plutonium library
5
6 @file audio_Music.hpp
7 @brief Music (BGM) 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 Music = Mix_Music*;
21
22 Music OpenMusic(const std::string &path);
23 void PlayMusic(Music mus, const int loops);
24 void PlayMusicWithFadeIn(Music mus, const i32 loops, const i32 ms);
26 void PauseMusic();
28 void SetMusicVolume(const i32 vol);
30 void FadeOutMusic(const i32 ms);
32 void StopMusic();
33 void SetMusicPosition(const double sec);
34 void DestroyMusic(Music &mus);
35
36}
i32 GetMusicVolume()
void FadeOutMusic(const i32 ms)
bool IsPlayingMusic()
void SetMusicPosition(const double sec)
void PlayMusicWithFadeIn(Music mus, const i32 loops, const i32 ms)
void PauseMusic()
void DestroyMusic(Music &mus)
void ResumeMusic()
void RewindMusic()
Music OpenMusic(const std::string &path)
void SetMusicVolume(const i32 vol)
void StopMusic()
void PlayMusic(Music mus, const int loops)
Definition audio_Music.hpp:18