![]() |
Copperfield Engine 0.1
C++ Game Engine
|
Component used for audio reproduction. More...
#include <default_components.hpp>
Public Member Functions | |
AudioCmp (const std::string &name, const SoundBuffer &buffer, float gain=1.0f, float pitch=1.0f) | |
Construct an audio component. More... | |
Public Attributes | |
SoundSource | src |
Object used to reproduce the audio. | |
Component used for audio reproduction.
|
inline |
Construct an audio component.
name | The name of the component used to identify the component. |
buffer | The sound buffer you want to assign. |
gain | Amount of audio signal increased by an amplifier. |
pitch | The vibrations of sound waves. |