#include <volumecontrol.h>

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 SoftwareVolume * | instance () |
Protected Member Functions | |
| void | volume (int *left, int *right) |
| SoftwareVolume::SoftwareVolume | ( | QObject * | parent = 0 |
) |
Object constructor.
| parent | Parent object. |
| SoftwareVolume::~SoftwareVolume | ( | ) |
Destructor.
| void SoftwareVolume::changeVolume | ( | Buffer * | b, | |
| int | chan, | |||
| Qmmp::AudioFormat | format | |||
| ) |
Changes volume of buffer.
| 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.
| 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.
| left | Pointer to the left volume level. | |
| right | Pointer to the right volume level |
Implements VolumeControl.
1.5.9