![]() |
Cytopia
0.3
A city building simulation game
|
#include <Soundtrack.hxx>
Public Member Functions | |
Soundtrack (SoundtrackID, ChannelID, DecodedAudioData *, RepeatCount, bool, bool, bool, bool) | |
~Soundtrack () | |
Public Attributes | |
SoundtrackID | ID |
ChannelID | Channel |
The ChannelID. More... | |
RepeatCount | Loop |
The number of times this track should be repeated. More... | |
bool | isMusic: 1 |
true if the Soundtrack is Music, false if it's a Sound More... | |
bool | isPlaying: 1 |
true if the Soundtrack is currently playing More... | |
bool | isTriggerable: 1 |
true if the Soundtrack can be played by AudioTrigger More... | |
bool | isPlayable: 1 |
true if the Soundtrack can be played by SoundtrackID More... | |
ALuint | source [2] |
The OpenAL sources of the sound track. More... | |
ALuint | buffer |
The OpenAL buffer of the sound track. More... | |
ALuint | effect_slot |
The OpenAL effect slot of the sound track. More... | |
DecodedAudioData | dAudioDataBuffer |
The audio data of the Soundtrack. More... | |
Definition at line 32 of file Soundtrack.hxx.
Soundtrack::Soundtrack | ( | SoundtrackID | id, |
ChannelID | channelID, | ||
DecodedAudioData * | dAudioData, | ||
RepeatCount | repeat, | ||
bool | isMusic, | ||
bool | isPlaying, | ||
bool | isPlayable, | ||
bool | isTriggerable | ||
) |
Definition at line 6 of file Soundtrack.cxx.
Soundtrack::~Soundtrack | ( | ) |
ALuint Soundtrack::buffer |
The OpenAL buffer of the sound track.
An object that tells the OpenAL system what the sound made is. Must be connected to a source to tell the system where the sound is made.
Definition at line 80 of file Soundtrack.hxx.
ChannelID Soundtrack::Channel |
The ChannelID.
Definition at line 39 of file Soundtrack.hxx.
DecodedAudioData Soundtrack::dAudioDataBuffer |
The audio data of the Soundtrack.
Definition at line 92 of file Soundtrack.hxx.
ALuint Soundtrack::effect_slot |
The OpenAL effect slot of the sound track.
An object that tells the OpenAL system what effect to apply to the sound. Must be connected to a source to tell the system where the sound is made.
Definition at line 87 of file Soundtrack.hxx.
SoundtrackID Soundtrack::ID |
Definition at line 34 of file Soundtrack.hxx.
bool Soundtrack::isMusic |
true if the Soundtrack is Music, false if it's a Sound
Definition at line 51 of file Soundtrack.hxx.
bool Soundtrack::isPlayable |
true if the Soundtrack can be played by SoundtrackID
Definition at line 66 of file Soundtrack.hxx.
bool Soundtrack::isPlaying |
true if the Soundtrack is currently playing
Definition at line 56 of file Soundtrack.hxx.
bool Soundtrack::isTriggerable |
true if the Soundtrack can be played by AudioTrigger
Definition at line 61 of file Soundtrack.hxx.
RepeatCount Soundtrack::Loop |
The number of times this track should be repeated.
Must be between [0, 255]. A value of 0 will only play once while a value of 255 will play forever
Definition at line 46 of file Soundtrack.hxx.
ALuint Soundtrack::source[2] |
The OpenAL sources of the sound track.
An object that tells the OpenAL system where the sound making object is located in 3D space and what buffer(sound) it makes. source[0] is for sound effects and source[1] is for music.
Definition at line 73 of file Soundtrack.hxx.