SoftwareVolume Class Reference

The SoftwareVolume class provides access to the software volume control. More...

#include <volumecontrol.h>

Inheritance diagram for SoftwareVolume:

VolumeControl

List of all members.

Public Member Functions

 SoftwareVolume (QObject *parent=0)
 ~SoftwareVolume ()
void setVolume (int left, int right)
void changeVolume (Buffer *b, int chan, Qmmp::AudioFormat format)

Static Public Member Functions

static SoftwareVolumeinstance ()

Protected Member Functions

void volume (int *left, int *right)


Detailed Description

The SoftwareVolume class provides access to the software volume control.

Author:
Ilya Kotov <forkotov02@hotmail.ru>

Constructor & Destructor Documentation

SoftwareVolume::SoftwareVolume ( QObject *  parent = 0  ) 

Object constructor.

Parameters:
parent Parent object.

SoftwareVolume::~SoftwareVolume (  ) 

Destructor.


Member Function Documentation

void SoftwareVolume::changeVolume ( Buffer b,
int  chan,
Qmmp::AudioFormat  format 
)

Changes volume of buffer.

Parameters:
b Pointer to the buffer object.
chan Number of channels.
format Audio format.

static SoftwareVolume* SoftwareVolume::instance (  )  [static]

Returns software volume object instance.

void SoftwareVolume::setVolume ( int  left,
int  right 
) [virtual]

Setups volume level. Subclass should reimplement this fucntion.

Parameters:
left Left channel volume level. It should be 0..100
right Right channel volume level. It should be 0..100

Implements VolumeControl.

void SoftwareVolume::volume ( int *  left,
int *  right 
) [protected, virtual]

Gets current volume.

Parameters:
left Pointer to the left volume level.
right Pointer to the right volume level

Implements VolumeControl.


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

Generated on Sat Mar 27 19:43:01 2010 for Qmmp by  doxygen 1.5.9