xoreos  0.0.5
Public Member Functions | Public Attributes | List of all members
Sound::SoundManager::Channel Struct Reference

A sound channel. More...

Collaboration diagram for Sound::SoundManager::Channel:
Collaboration graph
[legend]

Public Member Functions

 Channel (uint32 i, size_t idx, SoundType t, const TypeList::iterator &ti, AudioStream *s, bool d)
 

Public Attributes

uint32 id
 The channel's ID. More...
 
size_t index
 The channel's index. More...
 
ALint state
 The sound's state. More...
 
Common::DisposablePtr< AudioStreamstream
 The actual audio stream. More...
 
ALuint source
 OpenAL source for this channel. More...
 
std::list< ALuint > buffers
 List of buffers for that channel. More...
 
std::list< ALuint > freeBuffers
 List of free buffers not filled with data. More...
 
std::map< ALuint, ALsizei > bufferSize
 Size of a buffer in bytes. More...
 
SoundType type
 The channel's sound type. More...
 
TypeList::iterator typeIt
 Iterator into the type list. More...
 
uint64 finishedBuffers
 Number of bytes in all buffers that finished playing and were unqueued. More...
 
float gain
 The channel's gain. More...
 

Detailed Description

A sound channel.

Definition at line 202 of file sound.h.

Constructor & Destructor Documentation

◆ Channel()

Sound::SoundManager::Channel::Channel ( uint32  i,
size_t  idx,
SoundType  t,
const TypeList::iterator &  ti,
AudioStream s,
bool  d 
)

Definition at line 67 of file sound.cpp.

Member Data Documentation

◆ buffers

std::list<ALuint> Sound::SoundManager::Channel::buffers

List of buffers for that channel.

Definition at line 212 of file sound.h.

Referenced by Sound::SoundManager::freeChannel(), and Sound::SoundManager::playAudioStream().

◆ bufferSize

std::map<ALuint, ALsizei> Sound::SoundManager::Channel::bufferSize

Size of a buffer in bytes.

Definition at line 215 of file sound.h.

Referenced by Sound::SoundManager::bufferData(), and Sound::SoundManager::playAudioStream().

◆ finishedBuffers

uint64 Sound::SoundManager::Channel::finishedBuffers

Number of bytes in all buffers that finished playing and were unqueued.

Definition at line 221 of file sound.h.

Referenced by Sound::SoundManager::bufferData(), and Sound::SoundManager::getChannelSamplesPlayed().

◆ freeBuffers

std::list<ALuint> Sound::SoundManager::Channel::freeBuffers

List of free buffers not filled with data.

Definition at line 213 of file sound.h.

Referenced by Sound::SoundManager::bufferData(), and Sound::SoundManager::playAudioStream().

◆ gain

float Sound::SoundManager::Channel::gain

The channel's gain.

Definition at line 223 of file sound.h.

Referenced by Sound::SoundManager::setChannelGain().

◆ id

uint32 Sound::SoundManager::Channel::id

The channel's ID.

Definition at line 203 of file sound.h.

Referenced by Sound::SoundManager::formatChannel(), and Sound::SoundManager::pauseChannel().

◆ index

size_t Sound::SoundManager::Channel::index

The channel's index.

Definition at line 204 of file sound.h.

Referenced by Sound::SoundManager::formatChannel().

◆ source

ALuint Sound::SoundManager::Channel::source

◆ state

ALint Sound::SoundManager::Channel::state

The sound's state.

Definition at line 206 of file sound.h.

Referenced by Sound::SoundManager::pauseChannel(), and Sound::SoundManager::startChannel().

◆ stream

Common::DisposablePtr<AudioStream> Sound::SoundManager::Channel::stream

◆ type

SoundType Sound::SoundManager::Channel::type

The channel's sound type.

Definition at line 217 of file sound.h.

Referenced by Sound::SoundManager::freeChannel(), Sound::SoundManager::playAudioStream(), and Sound::SoundManager::setChannelGain().

◆ typeIt

TypeList::iterator Sound::SoundManager::Channel::typeIt

Iterator into the type list.

Definition at line 218 of file sound.h.

Referenced by Sound::SoundManager::freeChannel(), and Sound::SoundManager::playAudioStream().


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