#include <MusicComponent.hpp>
|
| void | init () override |
| void | destroy () override |
| | Automatically deregisters the currently registered music, if any.
|
| void | update (ae::q20_12_t) override |
| ae::ComponentTypeID | getType () const override |
| template<typename AudioID> |
| void | registerMusic (AudioType type, AudioID audioId) |
| | Wrapper to set up the music to play.
|
| void | playMusic () |
| | Play the registered song if currently paused.
|
| void | pauseMusic () |
| | Pause the registered song if currently playing.
|
| void | stopMusic () |
| | Deregister the currently registered music.
|
Definition at line 13 of file MusicComponent.hpp.
◆ destroy()
| void MusicComponent::destroy |
( |
| ) |
|
|
override |
Automatically deregisters the currently registered music, if any.
Definition at line 6 of file MusicComponent.cpp.
◆ getType()
| ae::ComponentTypeID MusicComponent::getType |
( |
| ) |
const |
|
inlineoverride |
◆ init()
| void MusicComponent::init |
( |
| ) |
|
|
inlineoverride |
◆ pauseMusic()
| void MusicComponent::pauseMusic |
( |
| ) |
|
◆ playMusic()
| void MusicComponent::playMusic |
( |
| ) |
|
◆ registerMusic() [1/2]
template<typename AudioID>
| void MusicComponent::registerMusic |
( |
AudioType | type, |
|
|
AudioID | audioId ) |
|
inline |
Wrapper to set up the music to play.
- Note
- Can only register one music track
- Parameters
-
| type | the audio type |
| audioId | the specific audio to play |
Definition at line 43 of file MusicComponent.hpp.
◆ registerMusic() [2/2]
| void MusicComponent::registerMusic |
( |
AudioType | type, |
|
|
int | audioId ) |
|
private |
Implementation to set up the music to play.
- Note
- Can only register one music track
- Parameters
-
| type | the audio type |
| audioId | the specific audio to play |
Definition at line 11 of file MusicComponent.cpp.
◆ stopMusic()
| void MusicComponent::stopMusic |
( |
| ) |
|
◆ submitToManager()
| void MusicComponent::submitToManager |
( |
| ) |
|
|
inlineoverrideprotected |
◆ update()
| void MusicComponent::update |
( |
ae::q20_12_t | | ) |
|
|
inlineoverride |
◆ am
| AudioManager& MusicComponent::am = AudioManager::getInstance() |
|
private |
◆ TYPE_ID
| ae::ComponentTypeID MusicComponent::TYPE_ID = static_cast<ae::ComponentTypeID>(ComponentType::Music) |
|
staticconstexpr |
The documentation for this class was generated from the following files: