ScummVM
Glk::PCSpeaker Class Reference

#include <pc_speaker.h>

Collaboration diagram for Glk::PCSpeaker:

Public Member Functions

 PCSpeaker (Audio::Mixer *mixer)
 
 ~PCSpeaker ()
 
void speakerOn (int16 frequency, int32 length=-1)
 
void speakerOff ()
 
void onUpdate (uint32 millis)
 

Private Attributes

Audio::Mixer_mixer
 
Audio::PCSpeaker_stream
 
Audio::SoundHandle _handle
 

Detailed Description

Definition at line 34 of file pc_speaker.h.

Constructor & Destructor Documentation

◆ PCSpeaker()

Glk::PCSpeaker::PCSpeaker ( Audio::Mixer mixer)

Definition at line 28 of file pc_speaker.cpp.

◆ ~PCSpeaker()

Glk::PCSpeaker::~PCSpeaker ( )

Definition at line 34 of file pc_speaker.cpp.

Member Function Documentation

◆ onUpdate()

void Glk::PCSpeaker::onUpdate ( uint32  millis)

Definition at line 47 of file pc_speaker.cpp.

◆ speakerOff()

void Glk::PCSpeaker::speakerOff ( )

Definition at line 43 of file pc_speaker.cpp.

◆ speakerOn()

void Glk::PCSpeaker::speakerOn ( int16  frequency,
int32  length = -1 
)

Definition at line 39 of file pc_speaker.cpp.

Member Data Documentation

◆ _handle

Audio::SoundHandle Glk::PCSpeaker::_handle
private

Definition at line 38 of file pc_speaker.h.

◆ _mixer

Audio::Mixer* Glk::PCSpeaker::_mixer
private

Definition at line 36 of file pc_speaker.h.

◆ _stream

Audio::PCSpeaker* Glk::PCSpeaker::_stream
private

Definition at line 37 of file pc_speaker.h.


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