|
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::ResumeMode : std::uint8_t |
| Enumerator | |
|---|---|
| RESUME_OFF | |
| RESUME_FIRST | |
| RESUME_TRACK | |
| RESUME_EXACT | |
| MAX_RESUME_MODES | |
Definition at line 183 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.
|
explicit |
Definition at line 56 of file musicplayer.cpp.
|
override |
Definition at line 89 of file musicplayer.cpp.
| void MusicPlayer::activePlaylistChanged | ( | int | trackID, |
| bool | deleted | ||
| ) |
Definition at line 1446 of file musicplayer.cpp.
Referenced by Playlist::addTrack(), MusicCommon::customEvent(), Playlist::fillSongsFromSonglist(), handleMedia(), Playlist::removeTrack(), and Playlist::resync().
| void MusicPlayer::addListener | ( | QObject * | listener | ) |
Definition at line 146 of file musicplayer.cpp.
Referenced by MusicCommon::init().
| void MusicPlayer::addTrack | ( | int | trackID, |
| bool | updateUI | ||
| ) |
Definition at line 1620 of file musicplayer.cpp.
Referenced by PlaylistEditorView::treeItemClicked().
| void MusicPlayer::addVisual | ( | MainVisual * | visual | ) |
Definition at line 178 of file musicplayer.cpp.
Referenced by MusicCommon::startVisualizer().
|
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 |
This will allow/disallow the mini player showing even using its jumppoint.
Definition at line 119 of file musicplayer.h.
| void MusicPlayer::changeCurrentTrack | ( | int | trackNo | ) |
change the current track to the given track
Definition at line 1154 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), next(), previous(), and setCurrentTrackPos().
|
overrideprotected |
Definition at line 551 of file musicplayer.cpp.
|
private |
Definition at line 1530 of file musicplayer.cpp.
Referenced by customEvent().
| void MusicPlayer::decSpeed | ( | ) |
Definition at line 1345 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
| void MusicPlayer::decVolume | ( | void | ) |
Definition at line 1396 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::decreaseVolume().
|
inline |
Definition at line 116 of file musicplayer.h.
Referenced by MiniPlayer::keyPressEvent().
| void MusicPlayer::getBufferStatus | ( | int * | bufferAvailable, |
| int * | bufferSize | ||
| ) | const |
Definition at line 954 of file musicplayer.cpp.
Referenced by MusicCommon::updateProgressBar().
|
inline |
Definition at line 120 of file musicplayer.h.
| MusicMetadata * MusicPlayer::getCurrentMetadata | ( | void | ) |
get the metadata for the current track in the playlist
Definition at line 1177 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(), MusicCommon::customEvent(), customEvent(), StreamView::customEvent(), AlbumArt::cycleImage(), StreamView::deleteStream(), MusicCommon::doUpdatePlaylist(), AlbumArt::draw(), AlbumArt::findFrontCover(), LyricsView::findLyrics(), getNextMetadata(), AlbumArt::handleKeyPress(), handleMedia(), MusicCommon::init(), MusicCommon::keyPressEvent(), TrackInfoPopup::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().
| Playlist * MusicPlayer::getCurrentPlaylist | ( | void | ) |
Definition at line 1625 of file musicplayer.cpp.
Referenced by activePlaylistChanged(), addTrack(), changeCurrentTrack(), MusicCommon::customEvent(), SearchView::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().
|
inline |
Definition at line 143 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), MusicCommon::doUpdatePlaylist(), MusicCommon::init(), MusicCommon::keyPressEvent(), and MusicCommon::updateShuffleMode().
|
inline |
Definition at line 147 of file musicplayer.h.
Referenced by LyricsView::customEvent().
|
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().
| MuteState MusicPlayer::getMuteState | ( | void | ) | const |
Definition at line 1430 of file musicplayer.cpp.
Referenced by isMuted().
| 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().
|
private |
Definition at line 1642 of file musicplayer.cpp.
Referenced by customEvent().
|
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().
|
inline |
Definition at line 141 of file musicplayer.h.
Referenced by StreamView::customEvent(), LyricsView::findLyrics(), and MusicCommon::updateUIPlayedList().
|
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(), MusicCommon::keyPressEvent(), LyricsView::keyPressEvent(), WaveForm::saveload(), LyricsView::ShowMenu(), MusicCommon::updateProgressBar(), and MusicCommon::updateTrackInfo().
|
static |
Definition at line 230 of file musicplayer.cpp.
Referenced by PlaylistEditorView::createPlaylistMenu(), MusicCommon::createPlaylistOptionsMenu(), PlaylistEditorView::createSmartPlaylistMenu(), SearchView::customEvent(), SearchView::ShowMenu(), and PlaylistEditorView::treeItemClicked().
|
inline |
Definition at line 191 of file musicplayer.h.
Referenced by MusicCommon::createRepeatMenu(), and MusicCommon::updateRepeatMode().
| MusicPlayer::ResumeMode MusicPlayer::getResumeMode | ( | void | ) |
Definition at line 206 of file musicplayer.cpp.
Referenced by decoderHandlerReady(), loadPlaylist(), and restorePosition().
|
inline |
Definition at line 195 of file musicplayer.h.
Referenced by MusicCommon::createShuffleMenu(), Playlist::fillSongsFromSonglist(), and MusicCommon::updateShuffleMode().
|
inline |
Definition at line 99 of file musicplayer.h.
Referenced by MusicCommon::getTimeString().
|
static |
Definition at line 1637 of file musicplayer.cpp.
| uint MusicPlayer::getVolume | ( | void | ) | const |
Definition at line 1414 of file musicplayer.cpp.
Referenced by customEvent(), sendVolumeChangedEvent(), toMap(), and MythMusicVolumeDialog::updateDisplay().
|
inline |
Definition at line 112 of file musicplayer.h.
Referenced by handleMedia(), showMiniPlayer(), and ~MusicPlayer().
| void MusicPlayer::incSpeed | ( | ) |
Definition at line 1339 of file musicplayer.cpp.
Referenced by MusicCommon::changeSpeed().
| void MusicPlayer::incVolume | ( | void | ) |
Definition at line 1387 of file musicplayer.cpp.
Referenced by MusicCommon::changeVolume(), and MythMusicVolumeDialog::increaseVolume().
|
inline |
Definition at line 89 of file musicplayer.h.
Referenced by sendVolumeChangedEvent(), toMap(), MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
|
inline |
Definition at line 110 of file musicplayer.h.
Referenced by customEvent(), StreamView::customEvent(), MusicCommon::init(), isStopped(), StreamView::updateStreamList(), and MusicCommon::updateUIPlaylist().
|
inline |
Definition at line 109 of file musicplayer.h.
Referenced by activePlaylistChanged(), MusicCommon::customEvent(), customEvent(), StreamView::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 111 of file musicplayer.h.
Referenced by MusicCommon::init().
| void MusicPlayer::loadPlaylist | ( | void | ) |
Definition at line 972 of file musicplayer.cpp.
Referenced by MusicData::loadMusic(), and setPlayMode().
|
private |
Definition at line 215 of file musicplayer.cpp.
Referenced by customEvent(), and MusicPlayer().
| void MusicPlayer::loadStreamPlaylist | ( | void | ) |
Definition at line 1012 of file musicplayer.cpp.
Referenced by StreamView::addStream(), StreamView::deleteStream(), MusicData::loadMusic(), and StreamView::updateStream().
| void MusicPlayer::moveTrackUpDown | ( | bool | moveUp, |
| int | whichTrack | ||
| ) |
Definition at line 1033 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| void MusicPlayer::next | ( | void | ) |
Definition at line 419 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::next(), nextAuto(), and play().
| void MusicPlayer::nextAuto | ( | void | ) |
Definition at line 493 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 373 of file musicplayer.cpp.
Referenced by play().
| void MusicPlayer::pause | ( | void | ) |
Definition at line 299 of file musicplayer.cpp.
Referenced by customEvent(), MusicCommon::pause(), and stop().
| void MusicPlayer::play | ( | void | ) |
Definition at line 318 of file musicplayer.cpp.
Referenced by customEvent(), next(), nextAuto(), MusicCommon::play(), playFile(), previous(), restorePosition(), setCurrentTrackPos(), and StartPlayback().
| void MusicPlayer::playFile | ( | const MusicMetadata & | mdata | ) |
Definition at line 236 of file musicplayer.cpp.
Referenced by customEvent(), and ImportMusicDialog::playPressed().
| void MusicPlayer::playlistChanged | ( | int | playlistID | ) |
Definition at line 1510 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), and Playlist::resync().
| void MusicPlayer::previous | ( | void | ) |
Definition at line 459 of file musicplayer.cpp.
Referenced by MusicCommon::previous().
| void MusicPlayer::removeListener | ( | QObject * | listener | ) |
Definition at line 162 of file musicplayer.cpp.
Referenced by PlaylistEditorView::Create(), MusicCommon::switchView(), MiniPlayer::~MiniPlayer(), and MusicCommon::~MusicCommon().
| void MusicPlayer::removeTrack | ( | int | trackID | ) |
Definition at line 1604 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::keyPressEvent(), and PlaylistEditorView::treeItemClicked().
| void MusicPlayer::removeVisual | ( | MainVisual * | visual | ) |
Definition at line 192 of file musicplayer.cpp.
Referenced by MusicCommon::stopVisualizer().
| void MusicPlayer::restorePosition | ( | void | ) |
Definition at line 1084 of file musicplayer.cpp.
Referenced by MusicCommon::init(), and MusicData::reloadMusic().
| void MusicPlayer::savePosition | ( | void | ) |
Definition at line 1067 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), MusicCommon::keyPressEvent(), MusicData::reloadMusic(), setPlayMode(), StopPlayback(), and ~MusicPlayer().
| void MusicPlayer::seek | ( | std::chrono::seconds | pos | ) |
Definition at line 1125 of file musicplayer.cpp.
Referenced by decoderHandlerReady(), and restorePosition().
| void MusicPlayer::sendAlbumArtChangedEvent | ( | int | trackID | ) |
Definition at line 1369 of file musicplayer.cpp.
Referenced by EditMetadataCommon::~EditMetadataCommon().
| void MusicPlayer::sendCDChangedEvent | ( | void | ) |
Definition at line 1381 of file musicplayer.cpp.
Referenced by handleMedia().
| void MusicPlayer::sendMetadataChangedEvent | ( | int | trackID | ) |
Definition at line 1357 of file musicplayer.cpp.
Referenced by customEvent(), and EditMetadataCommon::saveToDatabase().
|
private |
Definition at line 1650 of file musicplayer.cpp.
Referenced by customEvent().
| void MusicPlayer::sendTrackStatsChangedEvent | ( | int | trackID | ) |
Definition at line 1363 of file musicplayer.cpp.
Referenced by MusicCommon::changeRating(), and updateVolatileMetadata().
| void MusicPlayer::sendTrackUnavailableEvent | ( | int | trackID | ) |
Definition at line 1375 of file musicplayer.cpp.
Referenced by play().
|
private |
Definition at line 1351 of file musicplayer.cpp.
Referenced by decVolume(), incVolume(), setVolume(), and toggleMute().
|
inline |
Definition at line 154 of file musicplayer.h.
Referenced by MusicCommon::switchView().
| bool MusicPlayer::setCurrentTrackPos | ( | int | pos | ) |
Definition at line 1052 of file musicplayer.cpp.
Referenced by MusicCommon::doUpdatePlaylist(), handleMedia(), MusicCommon::playFirstTrack(), MusicCommon::playlistItemClicked(), StreamView::streamItemClicked(), and PlaylistEditorView::treeItemClicked().
| void MusicPlayer::setPlayMode | ( | PlayMode | mode | ) |
Definition at line 960 of file musicplayer.cpp.
Referenced by StreamView::Create(), and MusicCommon::init().
|
static |
whether we prefer Play Now over Add Tracks
Definition at line 226 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), and SearchView::customEvent().
|
inline |
Definition at line 192 of file musicplayer.h.
Referenced by MusicCommon::customEvent(), PlaylistEditorView::customEvent(), and MusicPlayer().
| void MusicPlayer::setShuffleMode | ( | ShuffleMode | mode | ) |
Definition at line 1262 of file musicplayer.cpp.
Referenced by MusicCommon::customEvent(), PlaylistEditorView::customEvent(), loadPlaylist(), MusicPlayer(), and toggleShuffleMode().
| void MusicPlayer::setSpeed | ( | float | speed | ) |
Definition at line 1330 of file musicplayer.cpp.
Referenced by decSpeed(), and incSpeed().
|
private |
Definition at line 1516 of file musicplayer.cpp.
Referenced by play().
| void MusicPlayer::setVolume | ( | int | volume | ) |
Definition at line 1405 of file musicplayer.cpp.
Referenced by customEvent().
| void MusicPlayer::showMiniPlayer | ( | void | ) | const |
Definition at line 1137 of file musicplayer.cpp.
Referenced by showMiniPlayer().
|
slot |
Definition at line 530 of file musicplayer.cpp.
Referenced by MusicPlayer().
| void MusicPlayer::stop | ( | bool | stopAll = false | ) |
Definition at line 250 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().
|
private |
Definition at line 367 of file musicplayer.cpp.
|
slot |
Definition at line 540 of file musicplayer.cpp.
Referenced by MusicPlayer().
| void MusicPlayer::toggleMute | ( | void | ) |
Definition at line 1421 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::toggleMute(), and MusicCommon::toggleMute().
| MusicPlayer::RepeatMode MusicPlayer::toggleRepeatMode | ( | void | ) |
Definition at line 1216 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| MusicPlayer::ShuffleMode MusicPlayer::toggleShuffleMode | ( | void | ) |
Definition at line 1235 of file musicplayer.cpp.
Referenced by MusicCommon::keyPressEvent().
| void MusicPlayer::toMap | ( | InfoMap & | infoMap | ) | const |
Definition at line 1437 of file musicplayer.cpp.
Referenced by MythMusicVolumeDialog::updateDisplay(), and MusicCommon::updateVolume().
|
private |
Definition at line 1292 of file musicplayer.cpp.
Referenced by customEvent().
|
private |
Definition at line 1303 of file musicplayer.cpp.
Referenced by changeCurrentTrack().
|
private |
Definition at line 240 of file musicplayer.h.
Referenced by restorePosition(), and setAllowRestorePos().
|
private |
Definition at line 237 of file musicplayer.h.
Referenced by autoShowPlayer(), customEvent(), getAutoShowPlayer(), loadSettings(), nextAuto(), and ~MusicPlayer().
|
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 236 of file musicplayer.h.
Referenced by canShowPlayer(), customEvent(), getCanShowPlayer(), nextAuto(), and showMiniPlayer().
|
private |
Definition at line 224 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), getCurrentTrackTime(), and savePosition().
|
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 229 of file musicplayer.h.
Referenced by addListener(), getDecoder(), getDecoderHandler(), nextAuto(), removeListener(), setupDecoderHandler(), and ~MusicPlayer().
|
private |
Definition at line 262 of file musicplayer.h.
Referenced by customEvent(), and play().
|
private |
Definition at line 235 of file musicplayer.h.
Referenced by addListener(), customEvent(), nextAuto(), and removeListener().
|
private |
Definition at line 234 of file musicplayer.h.
Referenced by decoderHandlerReady(), isPlaying(), nextAuto(), pause(), stop(), and StopPlayback().
|
private |
Definition at line 242 of file musicplayer.h.
Referenced by customEvent(), and loadSettings().
|
private |
Definition at line 258 of file musicplayer.h.
Referenced by customEvent(), and decoderHandlerReady().
|
private |
Definition at line 254 of file musicplayer.h.
Referenced by getNotificationID(), and ~MusicPlayer().
|
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 257 of file musicplayer.h.
Referenced by customEvent(), getPlayedTracksList(), and ~MusicPlayer().
|
private |
Definition at line 233 of file musicplayer.h.
Referenced by customEvent(), getCurrentPlaylist(), getNextMetadata(), getPlayMode(), getResumeMode(), loadPlaylist(), restorePosition(), savePosition(), setPlayMode(), setShuffleMode(), updateLastplay(), and updateVolatileMetadata().
|
private |
Definition at line 250 of file musicplayer.h.
Referenced by decSpeed(), getSpeed(), incSpeed(), and setSpeed().
|
private |
Definition at line 245 of file musicplayer.h.
Referenced by getNextMetadata(), getRepeatMode(), next(), nextAuto(), setRepeatMode(), toggleRepeatMode(), and ~MusicPlayer().
|
private |
Definition at line 247 of file musicplayer.h.
Referenced by getResumeMode(), and loadSettings().
|
private |
Definition at line 246 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 253 of file musicplayer.h.
|
private |
Definition at line 244 of file musicplayer.h.
Referenced by getShuffleMode(), setShuffleMode(), toggleShuffleMode(), and ~MusicPlayer().
|
private |
Definition at line 239 of file musicplayer.h.
Referenced by customEvent(), decoderHandlerReady(), and updateLastplay().
|
private |
Definition at line 231 of file musicplayer.h.
Referenced by addVisual(), decoderHandlerReady(), openOutputDevice(), and removeVisual().
|
private |
Definition at line 238 of file musicplayer.h.
Referenced by StartPlayback(), and StopPlayback().