MythTV  master
Public Types | Public Slots | Public Member Functions | Static Public Member Functions | Protected Member Functions | Private Member Functions | Private Attributes | List of all members
MusicPlayer Class Reference

#include <mythplugins/mythmusic/mythmusic/musicplayer.h>

Inheritance diagram for MusicPlayer:
[legend]
Collaboration diagram for MusicPlayer:
[legend]

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
 
DecodergetDecoder (void)
 
DecoderHandlergetDecoderHandler (void)
 
AudioOutputgetOutput (void)
 
void loadPlaylist (void)
 
void loadStreamPlaylist (void)
 
PlaylistgetCurrentPlaylist (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)
 
MusicMetadatagetCurrentMetadata (void)
 get the metadata for the current track in the playlist More...
 
MusicMetadatagetNextMetadata (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 StreamListgetStreamList (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}
 
MusicMetadatam_oneshotMetadata {nullptr}
 
AudioOutputm_output {nullptr}
 
DecoderHandlerm_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
 

Detailed Description

Definition at line 61 of file musicplayer.h.

Member Enumeration Documentation

◆ PlayMode

enum MusicPlayer::PlayMode : std::uint8_t
Enumerator
PLAYMODE_TRACKSPLAYLIST 
PLAYMODE_TRACKSEDITOR 
PLAYMODE_RADIO 

Definition at line 69 of file musicplayer.h.

◆ RepeatMode

enum MusicPlayer::RepeatMode : std::uint8_t
Enumerator
REPEAT_OFF 
REPEAT_TRACK 
REPEAT_ALL 
MAX_REPEAT_MODES 

Definition at line 168 of file musicplayer.h.

◆ ShuffleMode

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.

◆ ResumeMode

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.

Constructor & Destructor Documentation

◆ MusicPlayer()

MusicPlayer::MusicPlayer ( QObject *  parent)
explicit

Definition at line 55 of file musicplayer.cpp.

◆ ~MusicPlayer()

MusicPlayer::~MusicPlayer ( void  )
override

Definition at line 88 of file musicplayer.cpp.

Member Function Documentation

◆ setPlayMode()

void MusicPlayer::setPlayMode ( PlayMode  mode)

Definition at line 968 of file musicplayer.cpp.

Referenced by StreamView::Create(), and MusicCommon::init().

◆ getPlayMode()

PlayMode MusicPlayer::getPlayMode ( void  )
inline

◆ playFile()

void MusicPlayer::playFile ( const MusicMetadata mdata)

Definition at line 235 of file musicplayer.cpp.

Referenced by customEvent(), and ImportMusicDialog::playPressed().

◆ addListener()

void MusicPlayer::addListener ( QObject *  listener)

Definition at line 145 of file musicplayer.cpp.

Referenced by MusicCommon::init().

◆ removeListener()

void MusicPlayer::removeListener ( QObject *  listener)

◆ addVisual()

void MusicPlayer::addVisual ( MainVisual visual)

Definition at line 177 of file musicplayer.cpp.

Referenced by MusicCommon::startVisualizer().

◆ removeVisual()

void MusicPlayer::removeVisual ( MainVisual visual)

Definition at line 191 of file musicplayer.cpp.

Referenced by MusicCommon::stopVisualizer().

◆ toggleMute()

void MusicPlayer::toggleMute ( void  )

Definition at line 1419 of file musicplayer.cpp.

Referenced by MusicCommon::toggleMute(), and MythMusicVolumeDialog::toggleMute().

◆ getMuteState()

MuteState MusicPlayer::getMuteState ( void  ) const

Definition at line 1428 of file musicplayer.cpp.

Referenced by isMuted().

◆ isMuted()

bool MusicPlayer::isMuted ( void  ) const
inline

◆ setVolume()

void MusicPlayer::setVolume ( int  volume)

Definition at line 1403 of file musicplayer.cpp.

Referenced by customEvent().

◆ incVolume()

void MusicPlayer::incVolume ( void  )

◆ decVolume()

void MusicPlayer::decVolume ( void  )

◆ getVolume()

uint MusicPlayer::getVolume ( void  ) const

◆ setSpeed()

void MusicPlayer::setSpeed ( float  speed)

Definition at line 1328 of file musicplayer.cpp.

Referenced by decSpeed(), and incSpeed().

◆ incSpeed()

void MusicPlayer::incSpeed ( )

Definition at line 1337 of file musicplayer.cpp.

Referenced by MusicCommon::changeSpeed().

◆ decSpeed()

void MusicPlayer::decSpeed ( )

Definition at line 1343 of file musicplayer.cpp.

Referenced by MusicCommon::changeSpeed().

◆ getSpeed()

float MusicPlayer::getSpeed ( ) const
inline

Definition at line 99 of file musicplayer.h.

Referenced by MusicCommon::getTimeString().

◆ play()

void MusicPlayer::play ( void  )

◆ stop()

void MusicPlayer::stop ( bool  stopAll = false)

◆ pause()

void MusicPlayer::pause ( void  )

Definition at line 298 of file musicplayer.cpp.

Referenced by customEvent(), MusicCommon::pause(), and stop().

◆ next()

void MusicPlayer::next ( void  )

Definition at line 430 of file musicplayer.cpp.

Referenced by MusicCommon::customEvent(), MusicCommon::next(), nextAuto(), and play().

◆ previous()

void MusicPlayer::previous ( void  )

Definition at line 469 of file musicplayer.cpp.

Referenced by MusicCommon::previous().

◆ nextAuto()

void MusicPlayer::nextAuto ( void  )

Definition at line 502 of file musicplayer.cpp.

Referenced by customEvent().

◆ isPlaying()

bool MusicPlayer::isPlaying ( void  ) const
inline

◆ isPaused()

bool MusicPlayer::isPaused ( void  )
inline

◆ isStopped()

bool MusicPlayer::isStopped ( void  )
inline

Definition at line 111 of file musicplayer.h.

Referenced by MusicCommon::init().

◆ hasClient()

bool MusicPlayer::hasClient ( void  )
inline

Definition at line 112 of file musicplayer.h.

Referenced by handleMedia(), showMiniPlayer(), and ~MusicPlayer().

◆ autoShowPlayer()

void MusicPlayer::autoShowPlayer ( bool  autoShow)
inline

This will allow/disallow the mini player showing on track changes.

Definition at line 115 of file musicplayer.h.

Referenced by MiniPlayer::keyPressEvent().

◆ getAutoShowPlayer()

bool MusicPlayer::getAutoShowPlayer ( void  ) const
inline

Definition at line 116 of file musicplayer.h.

Referenced by MiniPlayer::keyPressEvent().

◆ canShowPlayer()

void MusicPlayer::canShowPlayer ( bool  canShow)
inline

This will allow/disallow the mini player showing even using its jumppoint.

Definition at line 119 of file musicplayer.h.

◆ getCanShowPlayer()

bool MusicPlayer::getCanShowPlayer ( void  ) const
inline

Definition at line 120 of file musicplayer.h.

◆ setPlayNow()

void MusicPlayer::setPlayNow ( bool  PlayNow)
static

whether we prefer Play Now over Add Tracks

Definition at line 225 of file musicplayer.cpp.

Referenced by SearchView::customEvent(), and MusicCommon::customEvent().

◆ getPlayNow()

bool MusicPlayer::getPlayNow ( void  )
static

◆ getDecoder()

Decoder* MusicPlayer::getDecoder ( void  )
inline

◆ getDecoderHandler()

DecoderHandler* MusicPlayer::getDecoderHandler ( void  )
inline

◆ getOutput()

AudioOutput* MusicPlayer::getOutput ( void  )
inline

◆ loadPlaylist()

void MusicPlayer::loadPlaylist ( void  )

Definition at line 980 of file musicplayer.cpp.

Referenced by MusicData::loadMusic(), and setPlayMode().

◆ loadStreamPlaylist()

void MusicPlayer::loadStreamPlaylist ( void  )

◆ getCurrentPlaylist()

Playlist * MusicPlayer::getCurrentPlaylist ( void  )

◆ getStreamList()

StreamList * MusicPlayer::getStreamList ( void  )
static

Definition at line 1631 of file musicplayer.cpp.

◆ removeTrack()

void MusicPlayer::removeTrack ( int  trackID)

◆ addTrack()

void MusicPlayer::addTrack ( int  trackID,
bool  updateUI 
)

Definition at line 1614 of file musicplayer.cpp.

Referenced by PlaylistEditorView::treeItemClicked().

◆ moveTrackUpDown()

void MusicPlayer::moveTrackUpDown ( bool  moveUp,
int  whichTrack 
)

Definition at line 1037 of file musicplayer.cpp.

Referenced by MusicCommon::keyPressEvent().

◆ getPlayedTracksList()

QList<MusicMetadata*>& MusicPlayer::getPlayedTracksList ( void  )
inline

◆ getCurrentTrackPos()

int MusicPlayer::getCurrentTrackPos ( void  ) const
inline

◆ setCurrentTrackPos()

bool MusicPlayer::setCurrentTrackPos ( int  pos)

◆ changeCurrentTrack()

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().

◆ getCurrentTrackTime()

std::chrono::seconds MusicPlayer::getCurrentTrackTime ( void  ) const
inline

Definition at line 147 of file musicplayer.h.

Referenced by LyricsView::customEvent().

◆ activePlaylistChanged()

void MusicPlayer::activePlaylistChanged ( int  trackID,
bool  deleted 
)

◆ playlistChanged()

void MusicPlayer::playlistChanged ( int  playlistID)

Definition at line 1507 of file musicplayer.cpp.

Referenced by MusicCommon::customEvent(), and Playlist::resync().

◆ savePosition()

void MusicPlayer::savePosition ( void  )

◆ restorePosition()

void MusicPlayer::restorePosition ( void  )

Definition at line 1087 of file musicplayer.cpp.

Referenced by MusicCommon::init(), and MusicData::reloadMusic().

◆ setAllowRestorePos()

void MusicPlayer::setAllowRestorePos ( bool  allow)
inline

Definition at line 154 of file musicplayer.h.

Referenced by MusicCommon::switchView().

◆ seek()

void MusicPlayer::seek ( std::chrono::seconds  pos)

Definition at line 1127 of file musicplayer.cpp.

Referenced by decoderHandlerReady(), and restorePosition().

◆ getCurrentMetadata()

MusicMetadata * MusicPlayer::getCurrentMetadata ( void  )

◆ getNextMetadata()

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().

◆ sendMetadataChangedEvent()

void MusicPlayer::sendMetadataChangedEvent ( int  trackID)

Definition at line 1355 of file musicplayer.cpp.

Referenced by customEvent(), and EditMetadataCommon::saveToDatabase().

◆ sendTrackStatsChangedEvent()

void MusicPlayer::sendTrackStatsChangedEvent ( int  trackID)

Definition at line 1361 of file musicplayer.cpp.

Referenced by MusicCommon::changeRating(), and updateVolatileMetadata().

◆ sendAlbumArtChangedEvent()

void MusicPlayer::sendAlbumArtChangedEvent ( int  trackID)

Definition at line 1367 of file musicplayer.cpp.

Referenced by EditMetadataCommon::~EditMetadataCommon().

◆ sendTrackUnavailableEvent()

void MusicPlayer::sendTrackUnavailableEvent ( int  trackID)

Definition at line 1373 of file musicplayer.cpp.

Referenced by play().

◆ sendCDChangedEvent()

void MusicPlayer::sendCDChangedEvent ( void  )

Definition at line 1379 of file musicplayer.cpp.

Referenced by handleMedia().

◆ toMap()

void MusicPlayer::toMap ( InfoMap infoMap) const

◆ showMiniPlayer()

void MusicPlayer::showMiniPlayer ( void  ) const

Definition at line 1139 of file musicplayer.cpp.

Referenced by showMiniPlayer().

◆ getRepeatMode()

RepeatMode MusicPlayer::getRepeatMode ( void  )
inline

Definition at line 191 of file musicplayer.h.

Referenced by MusicCommon::createRepeatMenu(), and MusicCommon::updateRepeatMode().

◆ setRepeatMode()

void MusicPlayer::setRepeatMode ( RepeatMode  mode)
inline

◆ toggleRepeatMode()

MusicPlayer::RepeatMode MusicPlayer::toggleRepeatMode ( void  )

Definition at line 1215 of file musicplayer.cpp.

Referenced by MusicCommon::keyPressEvent().

◆ getShuffleMode()

ShuffleMode MusicPlayer::getShuffleMode ( void  )
inline

◆ setShuffleMode()

void MusicPlayer::setShuffleMode ( ShuffleMode  mode)

◆ toggleShuffleMode()

MusicPlayer::ShuffleMode MusicPlayer::toggleShuffleMode ( void  )

Definition at line 1234 of file musicplayer.cpp.

Referenced by MusicCommon::keyPressEvent().

◆ getResumeMode()

MusicPlayer::ResumeMode MusicPlayer::getResumeMode ( void  )

Definition at line 205 of file musicplayer.cpp.

Referenced by decoderHandlerReady(), loadPlaylist(), and restorePosition().

◆ getBufferStatus()

void MusicPlayer::getBufferStatus ( int *  bufferAvailable,
int *  bufferSize 
) const

Definition at line 962 of file musicplayer.cpp.

Referenced by MusicCommon::updateProgressBar().

◆ StartPlayback

void MusicPlayer::StartPlayback ( void  )
slot

Definition at line 538 of file musicplayer.cpp.

Referenced by MusicPlayer().

◆ StopPlayback

void MusicPlayer::StopPlayback ( void  )
slot

Definition at line 548 of file musicplayer.cpp.

Referenced by MusicPlayer().

◆ customEvent()

void MusicPlayer::customEvent ( QEvent *  event)
overrideprotected

Definition at line 559 of file musicplayer.cpp.

◆ loadSettings()

void MusicPlayer::loadSettings ( void  )
private

Definition at line 214 of file musicplayer.cpp.

Referenced by customEvent(), and MusicPlayer().

◆ stopDecoder()

void MusicPlayer::stopDecoder ( void  )
private

Definition at line 366 of file musicplayer.cpp.

Referenced by play(), and stop().

◆ openOutputDevice()

bool MusicPlayer::openOutputDevice ( void  )
private

Definition at line 372 of file musicplayer.cpp.

Referenced by play().

◆ updateLastplay()

void MusicPlayer::updateLastplay ( void  )
private

Definition at line 1290 of file musicplayer.cpp.

Referenced by customEvent().

◆ updateVolatileMetadata()

void MusicPlayer::updateVolatileMetadata ( void  )
private

Definition at line 1301 of file musicplayer.cpp.

Referenced by changeCurrentTrack().

◆ sendVolumeChangedEvent()

void MusicPlayer::sendVolumeChangedEvent ( void  )
private

Definition at line 1349 of file musicplayer.cpp.

Referenced by decVolume(), incVolume(), setVolume(), and toggleMute().

◆ getNotificationID()

int MusicPlayer::getNotificationID ( const QString &  hostname)
private

Definition at line 1636 of file musicplayer.cpp.

Referenced by customEvent().

◆ sendNotification()

void MusicPlayer::sendNotification ( int  notificationID,
const QString &  title,
const QString &  author,
const QString &  desc 
)
private

Definition at line 1644 of file musicplayer.cpp.

Referenced by customEvent().

◆ setupDecoderHandler()

void MusicPlayer::setupDecoderHandler ( void  )
private

Definition at line 1513 of file musicplayer.cpp.

Referenced by play().

◆ decoderHandlerReady()

void MusicPlayer::decoderHandlerReady ( void  )
private

Definition at line 1527 of file musicplayer.cpp.

Referenced by customEvent().

Member Data Documentation

◆ m_currentTrack

int MusicPlayer::m_currentTrack {-1}
private

◆ m_currentTime

std::chrono::seconds MusicPlayer::m_currentTime {0s}
private

Definition at line 224 of file musicplayer.h.

Referenced by customEvent(), decoderHandlerReady(), getCurrentTrackTime(), and savePosition().

◆ m_oneshotMetadata

MusicMetadata* MusicPlayer::m_oneshotMetadata {nullptr}
private

◆ m_output

AudioOutput* MusicPlayer::m_output {nullptr}
private

◆ m_decoderHandler

DecoderHandler* MusicPlayer::m_decoderHandler {nullptr}
private

◆ m_visualisers

QSet<QObject*> MusicPlayer::m_visualisers
private

Definition at line 231 of file musicplayer.h.

Referenced by addVisual(), decoderHandlerReady(), openOutputDevice(), and removeVisual().

◆ m_playMode

PlayMode MusicPlayer::m_playMode {PLAYMODE_TRACKSPLAYLIST}
private

◆ m_isPlaying

bool MusicPlayer::m_isPlaying {false}
private

Definition at line 234 of file musicplayer.h.

Referenced by decoderHandlerReady(), isPlaying(), nextAuto(), pause(), stop(), and StopPlayback().

◆ m_isAutoplay

bool MusicPlayer::m_isAutoplay {false}
private

Definition at line 235 of file musicplayer.h.

Referenced by addListener(), customEvent(), nextAuto(), and removeListener().

◆ m_canShowPlayer

bool MusicPlayer::m_canShowPlayer {true}
private

Definition at line 236 of file musicplayer.h.

Referenced by canShowPlayer(), customEvent(), getCanShowPlayer(), nextAuto(), and showMiniPlayer().

◆ m_autoShowPlayer

bool MusicPlayer::m_autoShowPlayer {true}
private

◆ m_wasPlaying

bool MusicPlayer::m_wasPlaying {false}
private

Definition at line 238 of file musicplayer.h.

Referenced by StartPlayback(), and StopPlayback().

◆ m_updatedLastplay

bool MusicPlayer::m_updatedLastplay {false}
private

Definition at line 239 of file musicplayer.h.

Referenced by customEvent(), decoderHandlerReady(), and updateLastplay().

◆ m_allowRestorePos

bool MusicPlayer::m_allowRestorePos {true}
private

Definition at line 240 of file musicplayer.h.

Referenced by restorePosition(), and setAllowRestorePos().

◆ m_lastplayDelay

std::chrono::seconds MusicPlayer::m_lastplayDelay {LASTPLAY_DELAY}
private

Definition at line 242 of file musicplayer.h.

Referenced by customEvent(), and loadSettings().

◆ m_shuffleMode

ShuffleMode MusicPlayer::m_shuffleMode {SHUFFLE_OFF}
private

Definition at line 244 of file musicplayer.h.

Referenced by getShuffleMode(), setShuffleMode(), toggleShuffleMode(), and ~MusicPlayer().

◆ m_repeatMode

RepeatMode MusicPlayer::m_repeatMode {REPEAT_OFF}
private

◆ m_resumeModePlayback

ResumeMode MusicPlayer::m_resumeModePlayback {RESUME_EXACT}
private

Definition at line 246 of file musicplayer.h.

Referenced by getResumeMode(), and loadSettings().

◆ m_resumeModeEditor

ResumeMode MusicPlayer::m_resumeModeEditor {RESUME_OFF}
private

Definition at line 247 of file musicplayer.h.

Referenced by getResumeMode(), and loadSettings().

◆ m_resumeModeRadio

ResumeMode MusicPlayer::m_resumeModeRadio {RESUME_TRACK}
private

Definition at line 248 of file musicplayer.h.

Referenced by getResumeMode(), and loadSettings().

◆ m_playSpeed

float MusicPlayer::m_playSpeed {1.0F}
private

Definition at line 250 of file musicplayer.h.

Referenced by decSpeed(), getSpeed(), incSpeed(), and setSpeed().

◆ m_showScannerNotifications

bool MusicPlayer::m_showScannerNotifications {true}
private

Definition at line 253 of file musicplayer.h.

◆ m_notificationMap

QMap<QString, int> MusicPlayer::m_notificationMap
private

Definition at line 254 of file musicplayer.h.

Referenced by getNotificationID(), and ~MusicPlayer().

◆ m_playedList

QList<MusicMetadata*> MusicPlayer::m_playedList
private

Definition at line 257 of file musicplayer.h.

Referenced by customEvent(), getPlayedTracksList(), and ~MusicPlayer().

◆ m_lastTrackStart

std::chrono::seconds MusicPlayer::m_lastTrackStart {0s}
private

Definition at line 258 of file musicplayer.h.

Referenced by customEvent(), and decoderHandlerReady().

◆ m_bufferAvailable

int MusicPlayer::m_bufferAvailable {0}
private

Definition at line 259 of file musicplayer.h.

Referenced by customEvent(), and getBufferStatus().

◆ m_bufferSize

int MusicPlayer::m_bufferSize {0}
private

Definition at line 260 of file musicplayer.h.

Referenced by customEvent(), and getBufferStatus().

◆ m_errorCount

int MusicPlayer::m_errorCount {0}
private

Definition at line 262 of file musicplayer.h.

Referenced by customEvent(), and play().


The documentation for this class was generated from the following files: