#include <statehandler.h>
List of all members.
Detailed Description
The StateHandler class allows to track information about playback progress.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Constructor & Destructor Documentation
Object constructor.
- Parameters:
-
Member Function Documentation
Returns current bitrate (in kbps)
Emitted when bitrate has changed.
- Parameters:
-
bitrate | New bitrate (in kbps) |
This signal is emitted when the stream reader fills it's buffer. The argument progress indicates the current percentage of buffering completed.
Emitted when channels number has changed.
- Parameters:
-
channels | New channels number. |
void dispatch |
( |
qint64 |
elapsed, |
|
|
int |
bitrate, |
|
|
quint32 |
frequency, |
|
|
int |
precision, |
|
|
int |
channels |
|
) |
| |
Sends information about playback progress.
- Parameters:
-
elapsed | Current time (in milliseconds). |
bitrate | Current bitrate (in kbps). |
frequency | Current samplerate (in Hz). |
precision | Sample size (in bits). |
channels | Number of channels. |
void dispatch |
( |
const QHash< QString, QString > & |
info | ) |
|
Sends stream information info
Sends buffering progress.
- Parameters:
-
percent | Indicates the current percentage of buffering completed. |
Returns the current time (in milliseconds).
Tracks elapesed time.
- Parameters:
-
time | New track position in milliseconds. |
Returns current sample rate (in Hz).
Emitted when samplerate has changed.
- Parameters:
-
frequency | New sample rate (in Hz) |
Returns a pointer to the first created StateHandler instance.
Returns sample size (in bits).
Emitted when sample size has changed.
- Parameters:
-
size | New sample size (in bits) |
Sends playback finished event.
Sends next track request.
Returns the current state.
The documentation for this class was generated from the following file: