Audio controls. More...
#include <VLCQtCore/Audio.h>
Public Slots | |
void | setVolume (int volume) |
Set current audio level. More... | |
void | setTrack (int track) |
Set current audio track. More... | |
bool | toggleMute () const |
Toggle mute state. More... | |
void | setChannel (Vlc::AudioChannel channel) |
Set audio channel. More... | |
void | setMute (bool mute) const |
Set mute state. More... | |
Signals | |
void | volumeChangedF (float volume) |
Signal sent when volume has changed. More... | |
void | volumeChanged (int volume) |
Signal sent when volume has changed. More... | |
void | muteChanged (bool mute) |
Signal sent when mute has changed. More... | |
Public Member Functions | |
VlcAudio (VlcMediaPlayer *player) | |
VlcAudio constructor. More... | |
~VlcAudio () | |
VlcAudio destructor. | |
bool | getMute () const |
Get current mute state. More... | |
int | track () const |
Get current audio track. More... | |
int | trackCount () const |
Get number of available audio tracks. More... | |
QStringList | trackDescription () const |
Get the description of available audio tracks. More... | |
QList< int > | trackIds () const |
Get the ids of available audio tracks. More... | |
QMap< int, QString > | tracks () const |
Get available audio tracks. More... | |
int | volume () const |
Get current audio level. More... | |
Vlc::AudioChannel | channel () const |
Get audio channel. More... | |
Friends | |
class | VlcAudioCallbackHelper |
Audio controls.
A group of audio controls functions.
|
explicit |
VlcAudio constructor.
This constructor creates a new audio manager.
player | media player (VlcMediaPlayer *) |
Vlc::AudioChannel VlcAudio::channel | ( | ) | const |
Get audio channel.
bool VlcAudio::getMute | ( | ) | const |
Get current mute state.
|
signal |
Signal sent when mute has changed.
mute | new mute state (bool) |
|
slot |
Set audio channel.
channel | new audio channel |
|
slot |
Set mute state.
mute | mute state (bool) |
|
slot |
Set current audio track.
track | new audio track (int) |
|
slot |
Set current audio level.
volume | new audio level (int) |
|
slot |
Toggle mute state.
int VlcAudio::track | ( | ) | const |
Get current audio track.
int VlcAudio::trackCount | ( | ) | const |
Get number of available audio tracks.
QStringList VlcAudio::trackDescription | ( | ) | const |
Get the description of available audio tracks.
QList< int > VlcAudio::trackIds | ( | ) | const |
Get the ids of available audio tracks.
QMap< int, QString > VlcAudio::tracks | ( | ) | const |
Get available audio tracks.
int VlcAudio::volume | ( | ) | const |
Get current audio level.
|
signal |
Signal sent when volume has changed.
volume | new volume (int) |
|
signal |
Signal sent when volume has changed.
volume | new volume (float) |