19 using std::make_unique;
21 using std::unique_ptr;
42 engine = unique_ptr<Engine>(Engine::createOffScreenInstance(512, 512,
false,
false,
false));
43 engine->setSceneColor(
Color4(39.0f / 255.0f, 39.0f / 255.0f, 39.0f / 255.0f, 1.0f));
46 this->
audio = Audio::getInstance();
56 engine->getGUI()->handleEvents();
62 engine->getGUI()->render();
73 Console::println(
"SoundTabView::initialize(): An error occurred: " +
string(exception.what()));
virtual void stop()=0
Stops this audio entity.
virtual void play()=0
Plays this audio entity.
virtual void rewind()=0
Rewinds this audio entity.
virtual void setFixed(bool fixed)
Set this entity fixed, means the sound will always played no matter where the position and listener i...
virtual const string & getId() const
Interface to audio module.
AudioEntity * getEntity(const string &id)
Returns an audio entity identified by given id.
void addEntity(AudioEntity *entity)
Adds a audio entity.
void removeEntity(const string &id)
Removes an audio entity.
Color 4 definition class.
GUI screen node that represents a screen that can be rendered via GUI system.
void addTooltipRequestListener(GUITooltipRequestListener *listener)
Add tooltip request listener.
void addActionListener(GUIActionListener *listener)
Add action listener.
std::exception Exception
Exception base class.