Skyscraper 2.0
SBS::SoundData Struct Reference

#include <soundsystem.h>

Public Member Functions

 SoundData ()
 
 ~SoundData ()
 
void AddHandle (Sound *handle)
 
void RemoveHandle (Sound *handle)
 
int GetHandleCount ()
 
void AddChannel (FMOD::Channel *channel)
 
void RemoveChannel (FMOD::Channel *channel)
 
int GetChannelCount ()
 

Public Attributes

FMOD::Sound * sound
 
std::string filename
 
std::vector< Sound * > handles
 
std::vector< FMOD::Channel * > channels
 

Detailed Description

Definition at line 94 of file soundsystem.h.

Constructor & Destructor Documentation

◆ SoundData()

SBS::SoundData::SoundData ( )

Definition at line 427 of file soundsystem.cpp.

References sound.

◆ ~SoundData()

SBS::SoundData::~SoundData ( )

Definition at line 432 of file soundsystem.cpp.

References sound.

Member Function Documentation

◆ AddChannel()

void SBS::SoundData::AddChannel ( FMOD::Channel * channel)

Definition at line 477 of file soundsystem.cpp.

References channels, and GetChannelCount().

Referenced by SBS::SoundSystem::Prepare().

Here is the call graph for this function:

◆ AddHandle()

void SBS::SoundData::AddHandle ( Sound * handle)

Definition at line 441 of file soundsystem.cpp.

References GetHandleCount(), and handles.

Referenced by SBS::Sound::Load(), and SBS::Sound::Play().

Here is the call graph for this function:

◆ GetChannelCount()

int SBS::SoundData::GetChannelCount ( )
inline

Definition at line 104 of file soundsystem.h.

Referenced by AddChannel(), Skyscraper::SoundManager::Loop(), and RemoveChannel().

◆ GetHandleCount()

int SBS::SoundData::GetHandleCount ( )
inline

◆ RemoveChannel()

void SBS::SoundData::RemoveChannel ( FMOD::Channel * channel)

Definition at line 492 of file soundsystem.cpp.

References channels, and GetChannelCount().

Referenced by SBS::Sound::IsValid(), and RemoveHandle().

Here is the call graph for this function:

◆ RemoveHandle()

void SBS::SoundData::RemoveHandle ( Sound * handle)

Definition at line 456 of file soundsystem.cpp.

References SBS::Sound::GetChannel(), GetHandleCount(), handles, and RemoveChannel().

Referenced by SBS::Sound::Unload().

Here is the call graph for this function:

Member Data Documentation

◆ channels

std::vector<FMOD::Channel*> SBS::SoundData::channels

Definition at line 112 of file soundsystem.h.

Referenced by AddChannel(), and RemoveChannel().

◆ filename

std::string SBS::SoundData::filename

◆ handles

std::vector<Sound*> SBS::SoundData::handles

◆ sound

FMOD::Sound* SBS::SoundData::sound

The documentation for this struct was generated from the following files: