Tone Class Reference

#include <tone.h>

List of all members.


Detailed Description

Definition at line 30 of file tone.h.


Public Slots

void audioTimerExpiry ()

Public Member Functions

 Tone (int freqHz, int volume, int ms, QObject *parent=0, const char *=0)
 Tone (const Tone &t, QObject *parent=0, const char *=0)
 Tone (int ms, QObject *parent=0, const char *=0)
 Tone (wavfile &wav, QObject *parent=0, const char *=0)
virtual ~Tone ()
Toneoperator+= (const Tone &rhs)
void sum (int freqHz, int volume)
short * getAudio ()
int getSamples ()
bool Playing ()
void Play (QString deviceName, bool loop)
void Stop ()
void OpenSpeaker (QString devName)
void CloseSpeaker ()

Private Attributes

int Samples
short * toneBuffer
bool Loop
QTimer * audioTimer
HWAVEOUT hSpeaker
WAVEHDR spkBufferDescr
AudioOutputmythOutput

Constructor & Destructor Documentation

Tone::Tone ( int  freqHz,
int  volume,
int  ms,
QObject *  parent = 0,
const char *  name = 0 
)

Definition at line 122 of file tone.cpp.

Tone::Tone ( const Tone t,
QObject *  parent = 0,
const char *  name = 0 
)

Definition at line 138 of file tone.cpp.

Tone::Tone ( int  ms,
QObject *  parent = 0,
const char *  name = 0 
)

Definition at line 152 of file tone.cpp.

Tone::Tone ( wavfile wav,
QObject *  parent = 0,
const char *  name = 0 
)

Definition at line 166 of file tone.cpp.

Tone::~Tone (  )  [virtual]

Definition at line 180 of file tone.cpp.


Member Function Documentation

Tone & Tone::operator+= ( const Tone rhs  ) 

Definition at line 195 of file tone.cpp.

void Tone::sum ( int  freqHz,
int  volume 
)

Definition at line 189 of file tone.cpp.

Referenced by TelephonyTones::TelephonyTones().

short* Tone::getAudio (  )  [inline]

Definition at line 44 of file tone.h.

Referenced by PhoneUIBox::keypadPressed().

int Tone::getSamples (  )  [inline]

Definition at line 45 of file tone.h.

Referenced by PhoneUIBox::keypadPressed().

bool Tone::Playing (  ) 

Definition at line 341 of file tone.cpp.

Referenced by PhoneUIBox::customEvent().

void Tone::Play ( QString  deviceName,
bool  loop 
)

Definition at line 210 of file tone.cpp.

Referenced by PhoneUIBox::customEvent(), and PhoneUIBox::handleTreeListSignals().

void Tone::Stop ( void   ) 

Definition at line 265 of file tone.cpp.

Referenced by audioTimerExpiry(), PhoneUIBox::customEvent(), and ~Tone().

void Tone::OpenSpeaker ( QString  devName  ) 

Definition at line 276 of file tone.cpp.

Referenced by Play().

void Tone::CloseSpeaker (  ) 

Definition at line 319 of file tone.cpp.

Referenced by Stop().

void Tone::audioTimerExpiry (  )  [slot]

Definition at line 252 of file tone.cpp.

Referenced by Play().


Member Data Documentation

int Tone::Samples [private]

Definition at line 57 of file tone.h.

Referenced by audioTimerExpiry(), getSamples(), operator+=(), Play(), sum(), and Tone().

short* Tone::toneBuffer [private]

Definition at line 58 of file tone.h.

Referenced by audioTimerExpiry(), getAudio(), operator+=(), Play(), sum(), Tone(), and ~Tone().

bool Tone::Loop [private]

Definition at line 59 of file tone.h.

Referenced by audioTimerExpiry(), Play(), and Tone().

QTimer* Tone::audioTimer [private]

Definition at line 60 of file tone.h.

Referenced by audioTimerExpiry(), Play(), Stop(), and Tone().

HWAVEOUT Tone::hSpeaker [private]

Definition at line 62 of file tone.h.

Referenced by CloseSpeaker(), OpenSpeaker(), Play(), Playing(), and Tone().

WAVEHDR Tone::spkBufferDescr [private]

Definition at line 63 of file tone.h.

Referenced by CloseSpeaker(), and Play().

Definition at line 65 of file tone.h.

Referenced by audioTimerExpiry(), CloseSpeaker(), OpenSpeaker(), Play(), Playing(), and Tone().


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

Generated on Sat Dec 18 05:16:12 2010 for MythTV by  doxygen 1.5.5