i6engine  1.0
i6e::api::AudioFacade Class Reference

#include <D:/Projekte/i6engine/libs/i6engine-modules/include/i6engine/api/facades/AudioFacade.h>

Public Member Functions

 AudioFacade ()
 
 ~AudioFacade ()
 
void createNode (int64_t comId, const std::string &f, bool l, double m, const Vec3 &p, const Vec3 &d, bool cacheable, const std::string &category)
 creates a new audio node More...
 
void deleteNode (int64_t comId)
 deletes an audio node More...
 
void updateListener (const Vec3 &position, const Quaternion &rotation, const Vec3 &velocity)
 updates audio listener More...
 
void updatePosition (int64_t comId, const Vec3 &position)
 updates audio position More...
 
audio::SoundHandle playSound (const std::string &f, double m, const Vec3 &p, const Vec3 &d, bool cacheable, const std::string &category)
 plays given sound once More...
 
audio::SoundHandle playSoundWithCallback (const std::string &f, double m, const Vec3 &p, const Vec3 &d, bool cacheable, const std::string &category, const std::function< void(bool)> callback)
 plays given sound if found and calls callback afterwards More...
 
void stopSound (audio::SoundHandle handle)
 stops sound with this handle ID More...
 
void resetSubSystem ()
 resets the subsystem to it's defaults More...
 

Detailed Description

Definition at line 40 of file AudioFacade.h.

Constructor & Destructor Documentation

i6e::api::AudioFacade::AudioFacade ( )
i6e::api::AudioFacade::~AudioFacade ( )

Member Function Documentation

void i6e::api::AudioFacade::createNode ( int64_t  comId,
const std::string &  f,
bool  l,
double  m,
const Vec3 p,
const Vec3 d,
bool  cacheable,
const std::string &  category 
)

creates a new audio node

void i6e::api::AudioFacade::deleteNode ( int64_t  comId)

deletes an audio node

audio::SoundHandle i6e::api::AudioFacade::playSound ( const std::string &  f,
double  m,
const Vec3 p,
const Vec3 d,
bool  cacheable,
const std::string &  category 
)

plays given sound once

audio::SoundHandle i6e::api::AudioFacade::playSoundWithCallback ( const std::string &  f,
double  m,
const Vec3 p,
const Vec3 d,
bool  cacheable,
const std::string &  category,
const std::function< void(bool)>  callback 
)

plays given sound if found and calls callback afterwards

void i6e::api::AudioFacade::resetSubSystem ( )

resets the subsystem to it's defaults

void i6e::api::AudioFacade::stopSound ( audio::SoundHandle  handle)

stops sound with this handle ID

void i6e::api::AudioFacade::updateListener ( const Vec3 position,
const Quaternion rotation,
const Vec3 velocity 
)

updates audio listener

void i6e::api::AudioFacade::updatePosition ( int64_t  comId,
const Vec3 position 
)

updates audio position


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