#include <soundcore.h>
List of all members.
Detailed Description
The SoundCore class provides a simple interface for audio playback.
- 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. |
Returns the current time (in milliseconds).
Tracks elapesed time.
- Parameters:
-
time | New track position in milliseconds. |
Returns equalizer settings
Emitted when equalizer settings have changed.
Emitted when playback has finished.
Returns current sample rate (in Hz).
Emitted when samplerate has changed.
- Parameters:
-
frequency | New sample rate (in Hz) |
Returns left volume level.
Returns all meta data in map.
Returns the metdata string associated with the given key.
Emitted when new metadata is available.
Indicates that the current active engine will be used for the next queued track. May be useful for some effect plugins.
Emitted before playback ends. Use this signal to append new url to the queue.
bool play |
( |
const QString & |
source, |
|
|
bool |
queue = false , |
|
|
qint64 |
offset = -1 |
|
) |
| [slot] |
This function plays file or stream with the given path source
. Returns true if playback has been started successful or source is not a local file, otherwise returns false. Useful for invalid files skipping.
Returns left volume level.
Returns sample size (in bits).
Emitted when sample size has changed.
- Parameters:
-
size | New sample size (in bits) |
void seek |
( |
qint64 |
pos | ) |
[slot] |
This function sets the current play position to pos
in milliseconds.
Chages equalizer settings to settings.
void setVolume |
( |
int |
left, |
|
|
int |
right |
|
) |
| [slot] |
Sets volume.
- Parameters:
-
left | - volume of the left channel [0..100]. |
right | - volume of the right channel [0..100]. |
Returns the current state.
This signal is emitted when the state of the SoundCore has changed.
Returns a hash of stream information if available
Emitted when new stream information is available.
Returns length in milliseconds
const QString url |
( |
| ) |
const [slot] |
This function returns file path or stream url.
Emitted when volume has changed.
- Parameters:
-
left | Left channel volume level. It should be [0..100] |
right | Right channel volume level. It should be [0..100] |
The documentation for this class was generated from the following file: