ScummVM
Glk::Sounds Class Reference

Sound manager. More...

#include <sound.h>

Collaboration diagram for Glk::Sounds:

Public Member Functions

 ~Sounds ()
 
schanid_t create (uint rock=0)
 Create a new channel. More...
 
schanid_t iterate (schanid_t chan, uint *rockptr=nullptr)
 Used to iterate over the current list of sound channels. More...
 
void poll ()
 Poll for whether any playing sounds are finished. More...
 

Private Member Functions

void removeSound (schanid_t snd)
 Remove a sound from the sounds list. More...
 

Private Attributes

Common::Array< schanid_t_sounds
 

Friends

class SoundChannel
 

Detailed Description

Sound manager.

Definition at line 97 of file sound.h.

Constructor & Destructor Documentation

◆ ~Sounds()

Glk::Sounds::~Sounds ( )

Definition at line 35 of file sound.cpp.

Member Function Documentation

◆ create()

schanid_t Glk::Sounds::create ( uint  rock = 0)

Create a new channel.

Definition at line 49 of file sound.cpp.

◆ iterate()

schanid_t Glk::Sounds::iterate ( schanid_t  chan,
uint rockptr = nullptr 
)

Used to iterate over the current list of sound channels.

Definition at line 55 of file sound.cpp.

◆ poll()

void Glk::Sounds::poll ( )

Poll for whether any playing sounds are finished.

Definition at line 69 of file sound.cpp.

◆ removeSound()

void Glk::Sounds::removeSound ( schanid_t  snd)
private

Remove a sound from the sounds list.

Definition at line 40 of file sound.cpp.

Friends And Related Function Documentation

◆ SoundChannel

friend class SoundChannel
friend

Definition at line 98 of file sound.h.

Member Data Documentation

◆ _sounds

Common::Array<schanid_t> Glk::Sounds::_sounds
private

Definition at line 100 of file sound.h.


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