Network-Music  0.1
An audible representation of network traffic
 All Classes Namespaces Files Functions Variables Typedefs Macros Pages
tone Class Reference

#include <tone.h>

Collaboration diagram for tone:
[legend]

Public Slots

void OnVolumeChanged (int value)
void Process ()
void DoResumeAudio ()
void DoPauseAudio ()
void DoStartPlaying ()

Public Member Functions

 tone (int volumePercent, int frequency, QObject *parent)
 ~tone ()
void Play ()
void Pause ()
void SetFrequency (qreal value)
void SetGenerator (Generator *gen)
QAudioFormat GetFormat ()

Public Attributes

Generatorm_generator

Protected Attributes

QAudioDeviceInfo m_device
QAudioOutput * m_audioOutput
QIODevice * m_output
QAudioFormat m_format
QByteArray m_buffer

Constructor & Destructor Documentation

tone::tone ( int  volumePercent,
int  frequency,
QObject *  parent 
)

Container that manages the audio playing of individual tones

tone::~tone ( )

Member Function Documentation

void tone::DoPauseAudio ( )
slot
void tone::DoResumeAudio ( )
slot

Here is the call graph for this function:

void tone::DoStartPlaying ( )
slot

Here is the call graph for this function:

QAudioFormat tone::GetFormat ( )
void tone::OnVolumeChanged ( int  value)
slot
void tone::Pause ( )
void tone::Play ( )
void tone::Process ( )
slot
void tone::SetFrequency ( qreal  value)

Here is the call graph for this function:

void tone::SetGenerator ( Generator gen)

Here is the call graph for this function:

Member Data Documentation

QAudioOutput* tone::m_audioOutput
protected
QByteArray tone::m_buffer
protected
QAudioDeviceInfo tone::m_device
protected
QAudioFormat tone::m_format
protected
Generator* tone::m_generator
QIODevice* tone::m_output
protected

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