Pioneer
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
Sound::MusicPlayer Class Reference

#include <SoundMusic.h>

Public Member Functions

 MusicPlayer ()
 
 ~MusicPlayer ()
 
float GetVolume () const
 
void SetVolume (const float)
 
void Play (const std::string &, const bool repeat=false, const float fadeDelta=1.f)
 
void Stop ()
 
void FadeOut (const float fadeDelta)
 
void Update ()
 
const std::string GetCurrentSongName () const
 
const std::vector< std::string > GetSongList () const
 
bool IsPlaying () const
 
void SetEnabled (bool)
 

Public Attributes

sigc::signal< void > onSongFinished
 

Constructor & Destructor Documentation

◆ MusicPlayer()

Sound::MusicPlayer::MusicPlayer ( )

◆ ~MusicPlayer()

Sound::MusicPlayer::~MusicPlayer ( )

Member Function Documentation

◆ FadeOut()

void Sound::MusicPlayer::FadeOut ( const float  fadeDelta)
Here is the call graph for this function:

◆ GetCurrentSongName()

const std::string Sound::MusicPlayer::GetCurrentSongName ( ) const

◆ GetSongList()

const std::vector< std::string > Sound::MusicPlayer::GetSongList ( ) const
Here is the call graph for this function:

◆ GetVolume()

float Sound::MusicPlayer::GetVolume ( ) const

◆ IsPlaying()

bool Sound::MusicPlayer::IsPlaying ( ) const
Here is the call graph for this function:

◆ Play()

void Sound::MusicPlayer::Play ( const std::string &  name,
const bool  repeat = false,
const float  fadeDelta = 1.f 
)
Here is the call graph for this function:

◆ SetEnabled()

void Sound::MusicPlayer::SetEnabled ( bool  en)
Here is the call graph for this function:

◆ SetVolume()

void Sound::MusicPlayer::SetVolume ( const float  vol)
Here is the call graph for this function:

◆ Stop()

void Sound::MusicPlayer::Stop ( )
Here is the call graph for this function:

◆ Update()

void Sound::MusicPlayer::Update ( )
Here is the call graph for this function:

Member Data Documentation

◆ onSongFinished

sigc::signal<void> Sound::MusicPlayer::onSongFinished

The documentation for this class was generated from the following files: