Class SoundNode

Inheritance Relationships

Base Types

  • public simple2dengine::Node (Class Node)
  • public Sound

Class Documentation

class SoundNode : public simple2dengine::Node, public Sound

Regular sound node that can be played in the audio environment.

Public Functions

void setSound(const AssetManager &assetManager, const std::string &filename)

Set the source file containing the audio data to play.

See
AssetManager.
Parameters
  • assetManager: Asset Manager where asset should be stored.
  • filename: Name of file with relative or full path.