MythTV
master
|
#include <mythplugins/mythmusic/mythmusic/musicplayer.h>
Public Types | |
enum | PlayMode : std::uint8_t { PLAYMODE_TRACKSPLAYLIST = 0, PLAYMODE_TRACKSEDITOR, PLAYMODE_RADIO } |
enum | RepeatMode : std::uint8_t { REPEAT_OFF = 0, REPEAT_TRACK, REPEAT_ALL, MAX_REPEAT_MODES } |
enum | ShuffleMode : std::uint8_t { SHUFFLE_OFF = 0, SHUFFLE_RANDOM, SHUFFLE_INTELLIGENT, SHUFFLE_ALBUM, SHUFFLE_ARTIST, MAX_SHUFFLE_MODES } |
enum | ResumeMode : std::uint8_t { RESUME_OFF, RESUME_FIRST, RESUME_TRACK, RESUME_EXACT, MAX_RESUME_MODES } |
Public Slots | |
void | StartPlayback (void) |
void | StopPlayback (void) |
Public Member Functions | |
MusicPlayer (QObject *parent) | |
~MusicPlayer (void) override | |
void | setPlayMode (PlayMode mode) |
PlayMode | getPlayMode (void) |
void | playFile (const MusicMetadata &mdata) |
void | addListener (QObject *listener) |
void | removeListener (QObject *listener) |
void | addVisual (MainVisual *visual) |
void | removeVisual (MainVisual *visual) |
void | toggleMute (void) |
MuteState | getMuteState (void) const |
bool | isMuted (void) const |
void | setVolume (int volume) |
void | incVolume (void) |
void | decVolume (void) |
uint | getVolume (void) const |
void | setSpeed (float speed) |
void | incSpeed () |
void | decSpeed () |
float | getSpeed () const |
void | play (void) |
void | stop (bool stopAll=false) |
void | pause (void) |
void | next (void) |
void | previous (void) |
void | nextAuto (void) |
bool | isPlaying (void) const |
bool | isPaused (void) |
bool | isStopped (void) |
bool | hasClient (void) |
void | autoShowPlayer (bool autoShow) |
This will allow/disallow the mini player showing on track changes. More... | |
bool | getAutoShowPlayer (void) const |
void | canShowPlayer (bool canShow) |
This will allow/disallow the mini player showing even using its jumppoint. More... | |
bool | getCanShowPlayer (void) const |
Decoder * | getDecoder (void) |
DecoderHandler * | getDecoderHandler (void) |
AudioOutput * | getOutput (void) |
void | loadPlaylist (void) |
void | loadStreamPlaylist (void) |
Playlist * | getCurrentPlaylist (void) |
void | removeTrack (int trackID) |
void | addTrack (int trackID, bool updateUI) |
void | moveTrackUpDown (bool moveUp, int whichTrack) |
QList< MusicMetadata * > & | getPlayedTracksList (void) |
int | getCurrentTrackPos (void) const |
bool | setCurrentTrackPos (int pos) |
void | changeCurrentTrack (int trackNo) |
change the current track to the given track More... | |
std::chrono::seconds | getCurrentTrackTime (void) const |
void | activePlaylistChanged (int trackID, bool deleted) |
void | playlistChanged (int playlistID) |
void | savePosition (void) |
void | restorePosition (void) |
void | setAllowRestorePos (bool allow) |
void | seek (std::chrono::seconds pos) |
MusicMetadata * | getCurrentMetadata (void) |
get the metadata for the current track in the playlist More... | |
MusicMetadata * | getNextMetadata (void) |
get the metadata for the next track in the playlist More... | |
void | sendMetadataChangedEvent (int trackID) |
void | sendTrackStatsChangedEvent (int trackID) |
void | sendAlbumArtChangedEvent (int trackID) |
void | sendTrackUnavailableEvent (int trackID) |
void | sendCDChangedEvent (void) |
void | toMap (InfoMap &infoMap) const |
void | showMiniPlayer (void) const |
RepeatMode | getRepeatMode (void) |
void | setRepeatMode (RepeatMode mode) |
RepeatMode | toggleRepeatMode (void) |
ShuffleMode | getShuffleMode (void) |
void | setShuffleMode (ShuffleMode mode) |
ShuffleMode | toggleShuffleMode (void) |
ResumeMode | getResumeMode (void) |
void | getBufferStatus (int *bufferAvailable, int *bufferSize) const |
Public Member Functions inherited from MythObservable | |
MythObservable () | |
virtual | ~MythObservable () |
void | addListener (QObject *listener) |
Add a listener to the observable. More... | |
void | removeListener (QObject *listener) |
Remove a listener to the observable. More... | |
void | dispatch (const MythEvent &event) |
Dispatch an event to all listeners. More... | |
bool | hasListeners (void) |
Static Public Member Functions | |
static void | setPlayNow (bool PlayNow) |
whether we prefer Play Now over Add Tracks More... | |
static bool | getPlayNow (void) |
static StreamList * | getStreamList (void) |
Protected Member Functions | |
void | customEvent (QEvent *event) override |
Private Member Functions | |
void | loadSettings (void) |
void | stopDecoder (void) |
bool | openOutputDevice (void) |
void | updateLastplay (void) |
void | updateVolatileMetadata (void) |
void | sendVolumeChangedEvent (void) |
int | getNotificationID (const QString &hostname) |
void | sendNotification (int notificationID, const QString &title, const QString &author, const QString &desc) |
void | setupDecoderHandler (void) |
void | decoderHandlerReady (void) |
Private Attributes | |
int | m_currentTrack {-1} |
std::chrono::seconds | m_currentTime {0s} |
MusicMetadata * | m_oneshotMetadata {nullptr} |
AudioOutput * | m_output {nullptr} |
DecoderHandler * | m_decoderHandler {nullptr} |
QSet< QObject * > | m_visualisers |
PlayMode | m_playMode {PLAYMODE_TRACKSPLAYLIST} |
bool | m_isPlaying {false} |
bool | m_isAutoplay {false} |
bool | m_canShowPlayer {true} |
bool | m_autoShowPlayer {true} |
bool | m_wasPlaying {false} |
bool | m_updatedLastplay {false} |
bool | m_allowRestorePos {true} |
std::chrono::seconds | m_lastplayDelay {LASTPLAY_DELAY} |
ShuffleMode | m_shuffleMode {SHUFFLE_OFF} |
RepeatMode | m_repeatMode {REPEAT_OFF} |
ResumeMode | m_resumeModePlayback {RESUME_EXACT} |
ResumeMode | m_resumeModeEditor {RESUME_OFF} |
ResumeMode | m_resumeModeRadio {RESUME_TRACK} |
float | m_playSpeed {1.0F} |
bool | m_showScannerNotifications {true} |
QMap< QString, int > | m_notificationMap |
QList< MusicMetadata * > | m_playedList |
std::chrono::seconds | m_lastTrackStart {0s} |
int | m_bufferAvailable {0} |
int | m_bufferSize {0} |
int | m_errorCount {0} |
Additional Inherited Members | |
Protected Attributes inherited from MythObservable | |
QMutex * | m_lock {nullptr} |
QSet< QObject * > | m_listeners |
Definition at line 61 of file musicplayer.h.
enum MusicPlayer::PlayMode : std::uint8_t |
Enumerator | |
---|---|
PLAYMODE_TRACKSPLAYLIST | |
PLAYMODE_TRACKSEDITOR | |
PLAYMODE_RADIO |
Definition at line 69 of file musicplayer.h.
enum MusicPlayer::RepeatMode : std::uint8_t |
Enumerator | |
---|---|
REPEAT_OFF | |
REPEAT_TRACK | |
REPEAT_ALL | |
MAX_REPEAT_MODES |
Definition at line 168 of file musicplayer.h.
enum MusicPlayer::ShuffleMode : std::uint8_t |
Enumerator | |
---|---|
SHUFFLE_OFF | |
SHUFFLE_RANDOM | |
SHUFFLE_INTELLIGENT | |
SHUFFLE_ALBUM | |
SHUFFLE_ARTIST | |
MAX_SHUFFLE_MODES |
Definition at line 174 of file musicplayer.h.
enum MusicPlayer::ResumeMode : std::uint8_t |
Enumerator | |
---|---|
RESUME_OFF | |
RESUME_FIRST | |
RESUME_TRACK | |
RESUME_EXACT | |
MAX_RESUME_MODES |
Definition at line 183 of file musicplayer.h.
|
explicit |
Definition at line 55 of file musicplayer.cpp.
|
override |
Definition at line 88 of file musicplayer.cpp.
void MusicPlayer::setPlayMode | ( | PlayMode | mode | ) |
Definition at line 968 of file musicplayer.cpp.
Referenced by StreamView::Create(), and MusicCommon::init().
|
inline |
Definition at line 77 of file musicplayer.h.
Referenced by MusicCommon::changeRating(), MusicCommon::changeSpeed(), LyricsView::Create(), MusicCommon::createPlayerMenu(), MusicCommon::createSubMenu(), LyricsView::customEvent(), MusicCommon::customEvent(), LyricsView::findLyrics(), MusicCommon::init(), LyricsView::keyPressEvent(), MusicCommon::keyPressEvent(), WaveForm::saveload(), LyricsView::ShowMenu(), MusicCommon::updateProgressBar(), and MusicCommon::updateTrackInfo().
void MusicPlayer::playFile | ( | const MusicMetadata & | mdata | ) |
Definition at line 235 of file musicplayer.cpp.
Referenced by customEvent(), and ImportMusicDialog::playPressed().
void MusicPlayer::addListener | ( | QObject * | listener | ) |
Definition at line 145 of file musicplayer.cpp.
Referenced by MusicCommon::init().
void MusicPlayer::removeListener | ( | QObject * | listener | ) |
Definition at line 161 of file musicplayer.cpp.
Referenced by PlaylistEditorView::Create(), MusicCommon::switchView(), MiniPlayer::~MiniPlayer(), and MusicCommon::~MusicCommon().
void MusicPlayer::addVisual | ( | MainVisual * | visual | ) |
Definition at line 177 of file musicplayer.cpp.
Referenced by MusicCommon::startVisualizer().
void MusicPlayer::removeVisual | ( | MainVisual * | visual | ) |
Definition at line 191 of file musicplayer.cpp.
Referenced by MusicCommon::stopVisualizer().
void MusicPlayer::toggleMute | ( | void | ) |
Definition at line 1419 of file musicplayer.cpp.
Referenced by MusicCommon::toggleMute(), and MythMusicVolumeDialog::toggleMute().
MuteState MusicPlayer::getMuteState | ( | void | ) | const |
Definition at line 1428 of file musicplayer.cpp.
Referenced by isMuted().
|
inline |
Definition at line 89 of file musicplayer.h.
Referenced by sendVolumeChangedEvent(), toMap(), MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
void MusicPlayer::setVolume | ( | int | volume | ) |
Definition at line 1403 of file musicplayer.cpp.
Referenced by customEvent().
void MusicPlayer::incVolume | ( | void | ) |
Definition at line 1385 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::increaseVolume().
void MusicPlayer::decVolume | ( | void | ) |
Definition at line 1394 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::decreaseVolume().
uint MusicPlayer::getVolume | ( | void | ) | const |
Definition at line 1412 of file musicplayer.cpp.
Referenced by customEvent(), sendVolumeChangedEvent(), toMap(), and MythMusicVolumeDialog::updateDisplay().
void MusicPlayer::setSpeed | ( | float | speed | ) |
Definition at line 1328 of file musicplayer.cpp.
Referenced by decSpeed(), and incSpeed().
void MusicPlayer::incSpeed | ( | ) |
Definition at line 1337 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
void MusicPlayer::decSpeed | ( | ) |
Definition at line 1343 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
|
inline |
Definition at line 99 of file musicplayer.h.
Referenced by MusicCommon::getTimeString().
void MusicPlayer::play | ( | void | ) |
Definition at line 317 of file musicplayer.cpp.
Referenced by customEvent(), next(), nextAuto(), MusicCommon::play(), playFile(), previous(), restorePosition(), setCurrentTrackPos(), and StartPlayback().
Definition at line 249 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), customEvent(), StreamView::deleteStream(), handleMedia(), MusicCommon::init(), MusicCommon::keyPressEvent(), mythplugin_destroy(), next(), nextAuto(), play(), MusicData::reloadMusic(), setCurrentTrackPos(), GeneralSettings::slotDoResetDB(), MusicCommon::stop(), MusicCommon::stopAll(), StopPlayback(), StreamView::updateStreamList(), ImportMusicDialog::~ImportMusicDialog(), and ~MusicPlayer().
void MusicPlayer::pause | ( | void | ) |
Definition at line 298 of file musicplayer.cpp.
Referenced by customEvent(), MusicCommon::pause(), and stop().
void MusicPlayer::next | ( | void | ) |
Definition at line 430 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::next(), nextAuto(), and play().
void MusicPlayer::previous | ( | void | ) |
Definition at line 469 of file musicplayer.cpp.
Referenced by MusicCommon::previous().
void MusicPlayer::nextAuto | ( | void | ) |
Definition at line 502 of file musicplayer.cpp.
Referenced by customEvent().
|
inline |
Definition at line 109 of file musicplayer.h.
Referenced by activePlaylistChanged(), StreamView::customEvent(), MusicCommon::customEvent(), customEvent(), handleMedia(), MusicCommon::init(), isStopped(), MusicCommon::keyPressEvent(), MusicData::reloadMusic(), MusicCommon::seek(), LyricsView::setLyricTime(), MusicCommon::updatePlaylistStats(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), and ImportMusicDialog::~ImportMusicDialog().
|
inline |
Definition at line 110 of file musicplayer.h.
Referenced by StreamView::customEvent(), customEvent(), MusicCommon::init(), isStopped(), StreamView::updateStreamList(), and MusicCommon::updateUIPlaylist().
|
inline |
Definition at line 111 of file musicplayer.h.
Referenced by MusicCommon::init().
|
inline |
Definition at line 112 of file musicplayer.h.
Referenced by handleMedia(), showMiniPlayer(), and ~MusicPlayer().
|
inline |
This will allow/disallow the mini player showing on track changes.
Definition at line 115 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
|
inline |
Definition at line 116 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
|
inline |
This will allow/disallow the mini player showing even using its jumppoint.
Definition at line 119 of file musicplayer.h.
|
inline |
Definition at line 120 of file musicplayer.h.
|
static |
whether we prefer Play Now over Add Tracks
Definition at line 225 of file musicplayer.cpp.
Referenced by SearchView::customEvent(), and MusicCommon::customEvent().
|
static |
Definition at line 229 of file musicplayer.cpp.
Referenced by PlaylistEditorView::createPlaylistMenu(), MusicCommon::createPlaylistOptionsMenu(), PlaylistEditorView::createSmartPlaylistMenu(), SearchView::customEvent(), SearchView::ShowMenu(), and PlaylistEditorView::treeItemClicked().
|
inline |
Definition at line 126 of file musicplayer.h.
Referenced by addListener(), decoderHandlerReady(), pause(), removeListener(), MusicCommon::seek(), seek(), stop(), and updateVolatileMetadata().
|
inline |
Definition at line 127 of file musicplayer.h.
Referenced by activePlaylistChanged(), avfDecoder::checkMetatdata(), avfDecoder::initialize(), play(), and stopDecoder().
|
inline |
Definition at line 128 of file musicplayer.h.
Referenced by MusicCommon::changeSpeed(), MusicCommon::changeVolume(), decVolume(), incVolume(), isPaused(), MusicCommon::keyPressEvent(), MusicCommon::seek(), LyricsView::setLyricTime(), setVolume(), MainVisual::timeout(), and MusicCommon::toggleUpmix().
void MusicPlayer::loadPlaylist | ( | void | ) |
Definition at line 980 of file musicplayer.cpp.
Referenced by MusicData::loadMusic(), and setPlayMode().
void MusicPlayer::loadStreamPlaylist | ( | void | ) |
Definition at line 1016 of file musicplayer.cpp.
Referenced by StreamView::addStream(), StreamView::deleteStream(), MusicData::loadMusic(), and StreamView::updateStream().
Playlist * MusicPlayer::getCurrentPlaylist | ( | void | ) |
Definition at line 1619 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), addTrack(), changeCurrentTrack(), SearchView::customEvent(), MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), Playlist::fillSongsFromSonglist(), PlaylistEditorView::filterTracks(), PlaylistEditorView::getCDTracks(), getCurrentMetadata(), getNextMetadata(), PlaylistEditorView::getPlaylistTracks(), PlaylistEditorView::getSmartPlaylistTracks(), MusicCommon::init(), MusicCommon::keyPressEvent(), loadPlaylist(), moveTrackUpDown(), next(), nextAuto(), previous(), removeTrack(), MusicCommon::restorePosition(), restorePosition(), setShuffleMode(), SearchView::ShowMenu(), MusicCommon::showPlaylistOptionsMenu(), SearchView::trackClicked(), PlaylistEditorView::treeItemClicked(), MusicCommon::updatePlaylistStats(), PlaylistEditorView::updateSelectedTracks(), MusicCommon::updateShuffleMode(), StreamView::updateStreamList(), SearchView::updateTracksList(), and MusicCommon::updateUIPlaylist().
|
static |
Definition at line 1631 of file musicplayer.cpp.
void MusicPlayer::removeTrack | ( | int | trackID | ) |
Definition at line 1601 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::keyPressEvent(), and PlaylistEditorView::treeItemClicked().
void MusicPlayer::addTrack | ( | int | trackID, |
bool | updateUI | ||
) |
Definition at line 1614 of file musicplayer.cpp.
Referenced by PlaylistEditorView::treeItemClicked().
void MusicPlayer::moveTrackUpDown | ( | bool | moveUp, |
int | whichTrack | ||
) |
Definition at line 1037 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
|
inline |
Definition at line 141 of file musicplayer.h.
Referenced by StreamView::customEvent(), LyricsView::findLyrics(), and MusicCommon::updateUIPlayedList().
|
inline |
Definition at line 143 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), MusicCommon::init(), MusicCommon::keyPressEvent(), and MusicCommon::updateShuffleMode().
bool MusicPlayer::setCurrentTrackPos | ( | int | pos | ) |
Definition at line 1055 of file musicplayer.cpp.
Referenced by MusicCommon::doUpdatePlaylist(), handleMedia(), MusicCommon::playFirstTrack(), MusicCommon::playlistItemClicked(), StreamView::streamItemClicked(), and PlaylistEditorView::treeItemClicked().
void MusicPlayer::changeCurrentTrack | ( | int | trackNo | ) |
change the current track to the given track
Definition at line 1156 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), next(), previous(), and setCurrentTrackPos().
|
inline |
Definition at line 147 of file musicplayer.h.
Referenced by LyricsView::customEvent().
void MusicPlayer::activePlaylistChanged | ( | int | trackID, |
bool | deleted | ||
) |
Definition at line 1444 of file musicplayer.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), Playlist::fillSongsFromSonglist(), handleMedia(), Playlist::removeTrack(), and Playlist::resync().
void MusicPlayer::playlistChanged | ( | int | playlistID | ) |
Definition at line 1507 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), and Playlist::resync().
void MusicPlayer::savePosition | ( | void | ) |
Definition at line 1070 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::keyPressEvent(), MusicData::reloadMusic(), setPlayMode(), StopPlayback(), and ~MusicPlayer().
void MusicPlayer::restorePosition | ( | void | ) |
Definition at line 1087 of file musicplayer.cpp.
Referenced by MusicCommon::init(), and MusicData::reloadMusic().
|
inline |
Definition at line 154 of file musicplayer.h.
Referenced by MusicCommon::switchView().
void MusicPlayer::seek | ( | std::chrono::seconds | pos | ) |
Definition at line 1127 of file musicplayer.cpp.
Referenced by decoderHandlerReady(), and restorePosition().
MusicMetadata * MusicPlayer::getCurrentMetadata | ( | void | ) |
get the metadata for the current track in the playlist
Definition at line 1178 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), MusicCommon::byAlbum(), MusicCommon::byArtist(), MusicCommon::byGenre(), MusicCommon::byTitle(), MusicCommon::byYear(), MusicCommon::changeRating(), TrackInfoPopup::Create(), MusicCommon::createQuickPlaylistsMenu(), LyricsView::customEvent(), StreamView::customEvent(), MusicCommon::customEvent(), customEvent(), AlbumArt::cycleImage(), StreamView::deleteStream(), MusicCommon::doUpdatePlaylist(), AlbumArt::draw(), AlbumArt::findFrontCover(), LyricsView::findLyrics(), getNextMetadata(), AlbumArt::handleKeyPress(), handleMedia(), MusicCommon::init(), TrackInfoPopup::keyPressEvent(), MusicCommon::keyPressEvent(), loadStreamPlaylist(), AlbumArt::needsUpdate(), next(), play(), previous(), WaveForm::processUndisplayed(), restorePosition(), savePosition(), setCurrentTrackPos(), setShuffleMode(), updateLastplay(), MusicCommon::updateRepeatMode(), MusicCommon::updateShuffleMode(), StreamView::updateStream(), StreamView::updateStreamList(), MusicCommon::updateUIPlaylist(), updateVolatileMetadata(), and ImportMusicDialog::~ImportMusicDialog().
MusicMetadata * MusicPlayer::getNextMetadata | ( | void | ) |
get the metadata for the next track in the playlist
Definition at line 1190 of file musicplayer.cpp.
Referenced by TrackInfoPopup::Create(), MusicCommon::customEvent(), and MusicCommon::updateTrackInfo().
void MusicPlayer::sendMetadataChangedEvent | ( | int | trackID | ) |
Definition at line 1355 of file musicplayer.cpp.
Referenced by customEvent(), and EditMetadataCommon::saveToDatabase().
void MusicPlayer::sendTrackStatsChangedEvent | ( | int | trackID | ) |
Definition at line 1361 of file musicplayer.cpp.
Referenced by MusicCommon::changeRating(), and updateVolatileMetadata().
void MusicPlayer::sendAlbumArtChangedEvent | ( | int | trackID | ) |
Definition at line 1367 of file musicplayer.cpp.
Referenced by EditMetadataCommon::~EditMetadataCommon().
void MusicPlayer::sendTrackUnavailableEvent | ( | int | trackID | ) |
Definition at line 1373 of file musicplayer.cpp.
Referenced by play().
void MusicPlayer::sendCDChangedEvent | ( | void | ) |
Definition at line 1379 of file musicplayer.cpp.
Referenced by handleMedia().
void MusicPlayer::toMap | ( | InfoMap & | infoMap | ) | const |
Definition at line 1435 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
void MusicPlayer::showMiniPlayer | ( | void | ) | const |
Definition at line 1139 of file musicplayer.cpp.
Referenced by showMiniPlayer().
|
inline |
Definition at line 191 of file musicplayer.h.
Referenced by MusicCommon::createRepeatMenu(), and MusicCommon::updateRepeatMode().
|
inline |
Definition at line 192 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), PlaylistEditorView::customEvent(), and MusicPlayer().
MusicPlayer::RepeatMode MusicPlayer::toggleRepeatMode | ( | void | ) |
Definition at line 1215 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
|
inline |
Definition at line 195 of file musicplayer.h.
Referenced by MusicCommon::createShuffleMenu(), Playlist::fillSongsFromSonglist(), and MusicCommon::updateShuffleMode().
void MusicPlayer::setShuffleMode | ( | ShuffleMode | mode | ) |
Definition at line 1261 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), PlaylistEditorView::customEvent(), loadPlaylist(), MusicPlayer(), and toggleShuffleMode().
MusicPlayer::ShuffleMode MusicPlayer::toggleShuffleMode | ( | void | ) |
Definition at line 1234 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
MusicPlayer::ResumeMode MusicPlayer::getResumeMode | ( | void | ) |
Definition at line 205 of file musicplayer.cpp.
Referenced by decoderHandlerReady(), loadPlaylist(), and restorePosition().
void MusicPlayer::getBufferStatus | ( | int * | bufferAvailable, |
int * | bufferSize | ||
) | const |
Definition at line 962 of file musicplayer.cpp.
Referenced by MusicCommon::updateProgressBar().
|
slot |
Definition at line 538 of file musicplayer.cpp.
Referenced by MusicPlayer().
|
slot |
Definition at line 548 of file musicplayer.cpp.
Referenced by MusicPlayer().
|
overrideprotected |
Definition at line 559 of file musicplayer.cpp.
|
private |
Definition at line 214 of file musicplayer.cpp.
Referenced by customEvent(), and MusicPlayer().
|
private |
Definition at line 366 of file musicplayer.cpp.
|
private |
Definition at line 372 of file musicplayer.cpp.
Referenced by play().
|
private |
Definition at line 1290 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 1301 of file musicplayer.cpp.
Referenced by changeCurrentTrack().
|
private |
Definition at line 1349 of file musicplayer.cpp.
Referenced by decVolume(), incVolume(), setVolume(), and toggleMute().
|
private |
Definition at line 1636 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 1644 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 1513 of file musicplayer.cpp.
Referenced by play().
|
private |
Definition at line 1527 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 223 of file musicplayer.h.
Referenced by activePlaylistChanged(), changeCurrentTrack(), customEvent(), decoderHandlerReady(), getCurrentMetadata(), getCurrentTrackPos(), getNextMetadata(), loadPlaylist(), loadStreamPlaylist(), moveTrackUpDown(), next(), previous(), removeTrack(), restorePosition(), and setShuffleMode().
|
private |
Definition at line 224 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), getCurrentTrackTime(), and savePosition().
|
private |
Definition at line 226 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), getCurrentMetadata(), getNextMetadata(), next(), nextAuto(), playFile(), previous(), stop(), and ~MusicPlayer().
|
private |
Definition at line 228 of file musicplayer.h.
Referenced by addListener(), addVisual(), decoderHandlerReady(), getMuteState(), getOutput(), getVolume(), openOutputDevice(), pause(), play(), removeListener(), removeVisual(), seek(), setSpeed(), stop(), StopPlayback(), and toggleMute().
|
private |
Definition at line 229 of file musicplayer.h.
Referenced by addListener(), getDecoder(), getDecoderHandler(), nextAuto(), removeListener(), setupDecoderHandler(), and ~MusicPlayer().
|
private |
Definition at line 231 of file musicplayer.h.
Referenced by addVisual(), decoderHandlerReady(), openOutputDevice(), and removeVisual().
|
private |
Definition at line 233 of file musicplayer.h.
Referenced by customEvent(), getCurrentPlaylist(), getNextMetadata(), getPlayMode(), getResumeMode(), loadPlaylist(), restorePosition(), savePosition(), setPlayMode(), setShuffleMode(), updateLastplay(), and updateVolatileMetadata().
Definition at line 234 of file musicplayer.h.
Referenced by decoderHandlerReady(), isPlaying(), nextAuto(), pause(), stop(), and StopPlayback().
Definition at line 235 of file musicplayer.h.
Referenced by addListener(), customEvent(), nextAuto(), and removeListener().
Definition at line 236 of file musicplayer.h.
Referenced by canShowPlayer(), customEvent(), getCanShowPlayer(), nextAuto(), and showMiniPlayer().
Definition at line 237 of file musicplayer.h.
Referenced by autoShowPlayer(), customEvent(), getAutoShowPlayer(), loadSettings(), nextAuto(), and ~MusicPlayer().
Definition at line 238 of file musicplayer.h.
Referenced by StartPlayback(), and StopPlayback().
Definition at line 239 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), and updateLastplay().
Definition at line 240 of file musicplayer.h.
Referenced by restorePosition(), and setAllowRestorePos().
|
private |
Definition at line 242 of file musicplayer.h.
Referenced by customEvent(), and loadSettings().
|
private |
Definition at line 244 of file musicplayer.h.
Referenced by getShuffleMode(), setShuffleMode(), toggleShuffleMode(), and ~MusicPlayer().
|
private |
Definition at line 245 of file musicplayer.h.
Referenced by getNextMetadata(), getRepeatMode(), next(), nextAuto(), setRepeatMode(), toggleRepeatMode(), and ~MusicPlayer().
|
private |
Definition at line 246 of file musicplayer.h.
Referenced by getResumeMode(), and loadSettings().
|
private |
Definition at line 247 of file musicplayer.h.
Referenced by getResumeMode(), and loadSettings().
|
private |
Definition at line 248 of file musicplayer.h.
Referenced by getResumeMode(), and loadSettings().
|
private |
Definition at line 250 of file musicplayer.h.
Referenced by decSpeed(), getSpeed(), incSpeed(), and setSpeed().
Definition at line 253 of file musicplayer.h.
|
private |
Definition at line 254 of file musicplayer.h.
Referenced by getNotificationID(), and ~MusicPlayer().
|
private |
Definition at line 257 of file musicplayer.h.
Referenced by customEvent(), getPlayedTracksList(), and ~MusicPlayer().
|
private |
Definition at line 258 of file musicplayer.h.
Referenced by customEvent(), and decoderHandlerReady().
|
private |
Definition at line 259 of file musicplayer.h.
Referenced by customEvent(), and getBufferStatus().
|
private |
Definition at line 260 of file musicplayer.h.
Referenced by customEvent(), and getBufferStatus().
|
private |
Definition at line 262 of file musicplayer.h.
Referenced by customEvent(), and play().