MythTV  master
musicplayer.h
Go to the documentation of this file.
1 #ifndef MUSICPLAYER_H_
2 #define MUSICPLAYER_H_
3 
4 // mythtv
5 #include <audiooutput.h>
6 #include <mythobservable.h>
7 
8 // libmythmetadata
9 #include <musicmetadata.h>
10 
11 // mythmusic
12 #include "decoderhandler.h"
13 
14 // how long to wait before updating the lastplay and playcount fields
15 #define LASTPLAY_DELAY 15
16 
17 class AudioOutput;
18 class MainVisual;
19 class Playlist;
20 
22 {
23  public:
24  MusicPlayerEvent(Type type, int id) :
25  MythEvent(type), m_trackID(id) {}
26  MusicPlayerEvent(Type type, uint vol, bool muted) :
27  MythEvent(type), m_trackID(0), m_volume(vol), m_isMuted(muted) {}
28  ~MusicPlayerEvent() override = default;
29 
30  MythEvent *clone(void) const override // MythEvent
31  { return new MusicPlayerEvent(*this); }
32 
33  // for track changed/added/deleted/metadata changed/playlist changed events
34  int m_trackID;
35 
36  // for volume changed event
38  bool m_isMuted {false};
39 
40  static Type TrackChangeEvent;
41  static Type VolumeChangeEvent;
42  static Type TrackAddedEvent;
43  static Type TrackRemovedEvent;
44  static Type TrackUnavailableEvent;
45  static Type AllTracksRemovedEvent;
46  static Type MetadataChangedEvent;
48  static Type AlbumArtChangedEvent;
49  static Type CDChangedEvent;
50  static Type PlaylistChangedEvent;
52 };
53 
54 class MusicPlayer : public QObject, public MythObservable
55 {
56  Q_OBJECT
57 
58  public:
59  explicit MusicPlayer(QObject *parent);
60  ~MusicPlayer(void) override;
61 
62  enum PlayMode
63  {
67  };
68 
69  void setPlayMode(PlayMode mode);
70  PlayMode getPlayMode(void) { return m_playMode; }
71 
72  void playFile(const MusicMetadata &mdata);
73 
74  void addListener(QObject *listener);
75  void removeListener(QObject *listener);
76 
77  void addVisual(MainVisual *visual);
78  void removeVisual(MainVisual *visual);
79 
80  void toggleMute(void);
81  MuteState getMuteState(void) const;
82  bool isMuted(void) const { return getMuteState() == kMuteAll; }
83 
84  void setVolume(int volume);
85  void incVolume(void);
86  void decVolume(void);
87  uint getVolume(void) const;
88 
89  void setSpeed(float speed);
90  void incSpeed();
91  void decSpeed();
92  float getSpeed() const { return m_playSpeed; }
93 
94  void play(void);
95  void stop(bool stopAll = false);
96  void pause(void);
97  void next(void);
98  void previous(void);
99 
100  void nextAuto(void);
101 
102  bool isPlaying(void) const { return m_isPlaying; }
103  bool isPaused(void) { return getOutput() ? getOutput()->IsPaused() : false; }
104  bool isStopped(void) { return !(isPlaying() || isPaused()); }
105  bool hasClient(void) { return hasListeners(); }
106 
108  void autoShowPlayer(bool autoShow) { m_autoShowPlayer = autoShow; }
109  bool getAutoShowPlayer(void) const { return m_autoShowPlayer; }
110 
112  void canShowPlayer(bool canShow) { m_canShowPlayer = canShow; }
113  bool getCanShowPlayer(void) const { return m_canShowPlayer; }
114 
117  AudioOutput *getOutput(void) { return m_output; }
118 
119  void loadPlaylist(void);
120  void loadStreamPlaylist(void);
122  static StreamList *getStreamList(void);
123 
124  // these add and remove tracks from the active playlist
125  void removeTrack(int trackID);
126  void addTrack(int trackID, bool updateUI);
127 
128  void moveTrackUpDown(bool moveUp, int whichTrack);
129 
130  QList<MusicMetadata*> &getPlayedTracksList(void) { return m_playedList; }
131 
132  int getCurrentTrackPos(void) const { return m_currentTrack; }
133  bool setCurrentTrackPos(int pos);
134  void changeCurrentTrack(int trackNo);
135 
136  int getCurrentTrackTime(void) const { return m_currentTime; }
137 
138  void activePlaylistChanged(int trackID, bool deleted);
139  void playlistChanged(int playlistID);
140 
141  void savePosition(void);
142  void restorePosition(void);
143  void setAllowRestorePos(bool allow) { m_allowRestorePos = allow; }
144  void seek(int pos);
145 
148  void sendMetadataChangedEvent(int trackID);
149  void sendTrackStatsChangedEvent(int trackID);
150  void sendAlbumArtChangedEvent(int trackID);
151  void sendTrackUnavailableEvent(int trackID);
152  void sendCDChangedEvent(void);
153 
154  void toMap(InfoMap &infoMap) const;
155 
156  void showMiniPlayer(void) const;
158  { REPEAT_OFF = 0,
162  };
164  { SHUFFLE_OFF = 0,
170  };
171 
178  };
179 
181  void setRepeatMode(RepeatMode mode) { m_repeatMode = mode; }
183 
185  void setShuffleMode(ShuffleMode mode);
187 
189 
190  void getBufferStatus(int *bufferAvailable, int *bufferSize) const;
191 
192  public slots:
193  void StartPlayback(void);
194  void StopPlayback(void);
195 
196  protected:
197  void customEvent(QEvent *event) override; // QObject
198 
199  private:
200  void loadSettings(void);
201  void stopDecoder(void);
202  bool openOutputDevice(void);
203  void updateLastplay(void);
204  void updateVolatileMetadata(void);
205  void sendVolumeChangedEvent(void);
206  int getNotificationID(const QString &hostname);
207  void sendNotification(int notificationID, const QString &title, const QString &author, const QString &desc);
208 
209  void setupDecoderHandler(void);
210  void decoderHandlerReady(void);
211 
212  int m_currentTrack {-1};
213  int m_currentTime {0};
214 
216 
217  AudioOutput *m_output {nullptr};
219 
220  QSet<QObject*> m_visualisers;
221 
223  bool m_isPlaying {false};
224  bool m_isAutoplay {false};
225  bool m_canShowPlayer {true};
226  bool m_autoShowPlayer {true};
227  bool m_wasPlaying {false};
228  bool m_updatedLastplay {false};
229  bool m_allowRestorePos {true};
230 
232 
238 
239  float m_playSpeed {1.0F};
240 
241  // notification
243  QMap<QString, int> m_notificationMap;
244 
245  // radio stuff
246  QList<MusicMetadata*> m_playedList;
249  int m_bufferSize {0};
250 
251  int m_errorCount {0};
252 };
253 
257 
258 // This global variable contains the MusicPlayer instance for the application
259 extern MPUBLIC MusicPlayer *gPlayer;
260 
261  // This stores the last MythMediaDevice that was detected:
262 extern MPUBLIC QString gCDdevice;
263 
264 #endif
MusicPlayer::addVisual
void addVisual(MainVisual *visual)
Definition: musicplayer.cpp:175
MusicPlayer::StopPlayback
void StopPlayback(void)
Definition: musicplayer.cpp:531
MusicPlayer::PLAYMODE_TRACKSEDITOR
@ PLAYMODE_TRACKSEDITOR
Definition: musicplayer.h:65
MusicPlayer::toggleMute
void toggleMute(void)
Definition: musicplayer.cpp:1396
MusicPlayer::openOutputDevice
bool openOutputDevice(void)
Definition: musicplayer.cpp:359
MusicPlayer::SHUFFLE_INTELLIGENT
@ SHUFFLE_INTELLIGENT
Definition: musicplayer.h:166
MusicPlayer::m_bufferAvailable
int m_bufferAvailable
Definition: musicplayer.h:248
MusicPlayer::getDecoder
Decoder * getDecoder(void)
Definition: musicplayer.h:115
MusicPlayer::StartPlayback
void StartPlayback(void)
Definition: musicplayer.cpp:521
MusicPlayer::getOutput
AudioOutput * getOutput(void)
Definition: musicplayer.h:117
MPUBLIC
#define MPUBLIC
Definition: mythexp.h:10
MusicPlayer::m_showScannerNotifications
bool m_showScannerNotifications
Definition: musicplayer.h:242
MusicPlayer::m_notificationMap
QMap< QString, int > m_notificationMap
Definition: musicplayer.h:243
MusicPlayer::m_bufferSize
int m_bufferSize
Definition: musicplayer.h:249
MusicPlayer::setCurrentTrackPos
bool setCurrentTrackPos(int pos)
Definition: musicplayer.cpp:1033
MusicPlayer::getRepeatMode
RepeatMode getRepeatMode(void)
Definition: musicplayer.h:180
MusicPlayer::RESUME_OFF
@ RESUME_OFF
Definition: musicplayer.h:173
MusicPlayer::setVolume
void setVolume(int volume)
Definition: musicplayer.cpp:1380
MusicPlayerEvent::clone
MythEvent * clone(void) const override
Definition: musicplayer.h:30
MusicPlayer::toMap
void toMap(InfoMap &infoMap) const
Definition: musicplayer.cpp:1412
Q_DECLARE_METATYPE
Q_DECLARE_METATYPE(MusicPlayer::ResumeMode)
MusicPlayer::sendNotification
void sendNotification(int notificationID, const QString &title, const QString &author, const QString &desc)
Definition: musicplayer.cpp:1620
MusicPlayer::RESUME_TRACK
@ RESUME_TRACK
Definition: musicplayer.h:175
MusicPlayer::getAutoShowPlayer
bool getAutoShowPlayer(void) const
Definition: musicplayer.h:109
MusicPlayer::getResumeMode
ResumeMode getResumeMode(void)
Definition: musicplayer.cpp:203
MusicPlayer::loadPlaylist
void loadPlaylist(void)
Definition: musicplayer.cpp:962
MusicPlayerEvent
Definition: musicplayer.h:22
MusicPlayer::loadStreamPlaylist
void loadStreamPlaylist(void)
Definition: musicplayer.cpp:994
decoderhandler.h
title
QString title
Definition: mythplugins/mytharchive/mytharchivehelper/main.cpp:633
MythObservable
Superclass for making an object have a set of listeners.
Definition: mythobservable.h:12
MusicPlayer::decVolume
void decVolume(void)
Definition: musicplayer.cpp:1371
Playlist
Definition: playlist.h:46
MythEvent
This class is used as a container for messages.
Definition: mythevent.h:17
MusicPlayerEvent::TrackStatsChangedEvent
static Type TrackStatsChangedEvent
Definition: musicplayer.h:47
MusicPlayer::setShuffleMode
void setShuffleMode(ShuffleMode mode)
Definition: musicplayer.cpp:1238
MusicPlayer::getCurrentTrackPos
int getCurrentTrackPos(void) const
Definition: musicplayer.h:132
MusicPlayerEvent::TrackAddedEvent
static Type TrackAddedEvent
Definition: musicplayer.h:42
slots
unsigned int slots[4]
Definition: element.cpp:38
MusicPlayer::isPlaying
bool isPlaying(void) const
Definition: musicplayer.h:102
MusicPlayer::MusicPlayer
MusicPlayer(QObject *parent)
Definition: musicplayer.cpp:53
MusicPlayer::m_playMode
PlayMode m_playMode
Definition: musicplayer.h:222
MusicPlayer::m_resumeModePlayback
ResumeMode m_resumeModePlayback
Definition: musicplayer.h:235
MusicMetadata
Definition: musicmetadata.h:81
MusicPlayer::getStreamList
static StreamList * getStreamList(void)
Definition: musicplayer.cpp:1607
MusicPlayerEvent::MetadataChangedEvent
static Type MetadataChangedEvent
Definition: musicplayer.h:46
MusicPlayer::getMuteState
MuteState getMuteState(void) const
Definition: musicplayer.cpp:1405
MusicPlayer::getCurrentPlaylist
Playlist * getCurrentPlaylist(void)
Definition: musicplayer.cpp:1595
MusicPlayer::seek
void seek(int pos)
Definition: musicplayer.cpp:1105
MusicPlayer::removeListener
void removeListener(QObject *listener)
Definition: musicplayer.cpp:159
MusicPlayer::setPlayMode
void setPlayMode(PlayMode mode)
Definition: musicplayer.cpp:950
MusicPlayer::pause
void pause(void)
Definition: musicplayer.cpp:286
gCDdevice
MPUBLIC QString gCDdevice
Definition: musicplayer.cpp:36
MusicPlayer::updateVolatileMetadata
void updateVolatileMetadata(void)
Definition: musicplayer.cpp:1278
MusicPlayer::getPlayMode
PlayMode getPlayMode(void)
Definition: musicplayer.h:70
MusicPlayer::m_decoderHandler
DecoderHandler * m_decoderHandler
Definition: musicplayer.h:218
MusicPlayer::isStopped
bool isStopped(void)
Definition: musicplayer.h:104
MusicPlayer::changeCurrentTrack
void changeCurrentTrack(int trackNo)
change the current track to the given track
Definition: musicplayer.cpp:1133
MusicPlayer::m_resumeModeRadio
ResumeMode m_resumeModeRadio
Definition: musicplayer.h:237
MuteState
MuteState
Definition: volumebase.h:6
InfoMap
QHash< QString, QString > InfoMap
Definition: mythtypes.h:15
MusicPlayer::sendTrackStatsChangedEvent
void sendTrackStatsChangedEvent(int trackID)
Definition: musicplayer.cpp:1338
MusicPlayer::m_lastTrackStart
int m_lastTrackStart
Definition: musicplayer.h:247
MusicPlayer::ResumeMode
ResumeMode
Definition: musicplayer.h:173
MusicPlayerEvent::m_volume
uint m_volume
Definition: musicplayer.h:37
MusicPlayer::getCurrentMetadata
MusicMetadata * getCurrentMetadata(void)
get the metadata for the current track in the playlist
Definition: musicplayer.cpp:1155
MusicPlayer::getNotificationID
int getNotificationID(const QString &hostname)
Definition: musicplayer.cpp:1612
DecoderHandler
Class for starting stream decoding.
Definition: decoderhandler.h:71
MusicPlayerEvent::MusicPlayerEvent
MusicPlayerEvent(Type type, int id)
Definition: musicplayer.h:24
MusicPlayer::SHUFFLE_OFF
@ SHUFFLE_OFF
Definition: musicplayer.h:164
AudioOutput
Definition: audiooutput.h:26
MusicPlayer::m_lastplayDelay
int m_lastplayDelay
Definition: musicplayer.h:231
MusicPlayer::toggleRepeatMode
RepeatMode toggleRepeatMode(void)
Definition: musicplayer.cpp:1192
Decoder
Definition: decoder.h:66
MusicPlayerEvent::TrackChangeEvent
static Type TrackChangeEvent
Definition: musicplayer.h:40
MusicPlayerEvent::PlayedTracksChangedEvent
static Type PlayedTracksChangedEvent
Definition: musicplayer.h:51
MusicPlayer::removeVisual
void removeVisual(MainVisual *visual)
Definition: musicplayer.cpp:189
MusicPlayer::incVolume
void incVolume(void)
Definition: musicplayer.cpp:1362
MusicPlayer::toggleShuffleMode
ShuffleMode toggleShuffleMode(void)
Definition: musicplayer.cpp:1211
MusicPlayer::m_currentTrack
int m_currentTrack
Definition: musicplayer.h:212
MusicPlayer::MAX_REPEAT_MODES
@ MAX_REPEAT_MODES
Definition: musicplayer.h:161
MusicPlayer::m_wasPlaying
bool m_wasPlaying
Definition: musicplayer.h:227
MusicPlayer::setupDecoderHandler
void setupDecoderHandler(void)
Definition: musicplayer.cpp:1490
MusicPlayer::PlayMode
PlayMode
Definition: musicplayer.h:63
MusicPlayer::m_output
AudioOutput * m_output
Definition: musicplayer.h:217
MusicPlayer::nextAuto
void nextAuto(void)
Definition: musicplayer.cpp:485
MusicPlayer::REPEAT_TRACK
@ REPEAT_TRACK
Definition: musicplayer.h:159
MusicPlayer::sendTrackUnavailableEvent
void sendTrackUnavailableEvent(int trackID)
Definition: musicplayer.cpp:1350
MusicPlayerEvent::~MusicPlayerEvent
~MusicPlayerEvent() override=default
MusicPlayer::stopDecoder
void stopDecoder(void)
Definition: musicplayer.cpp:353
MusicPlayer::m_shuffleMode
ShuffleMode m_shuffleMode
Definition: musicplayer.h:233
MusicPlayerEvent::m_isMuted
bool m_isMuted
Definition: musicplayer.h:38
MusicPlayer::incSpeed
void incSpeed()
Definition: musicplayer.cpp:1314
MusicPlayer::RESUME_FIRST
@ RESUME_FIRST
Definition: musicplayer.h:174
MusicPlayer::m_autoShowPlayer
bool m_autoShowPlayer
Definition: musicplayer.h:226
MusicPlayer::getShuffleMode
ShuffleMode getShuffleMode(void)
Definition: musicplayer.h:184
MusicPlayer::SHUFFLE_ARTIST
@ SHUFFLE_ARTIST
Definition: musicplayer.h:168
MusicPlayerEvent::m_trackID
int m_trackID
Definition: musicplayer.h:34
MusicPlayer::savePosition
void savePosition(void)
Definition: musicplayer.cpp:1048
DecoderHandler::getDecoder
Decoder * getDecoder(void)
Definition: decoderhandler.h:85
MythObservable::hasListeners
bool hasListeners(void)
Definition: mythobservable.h:23
MusicPlayer::playlistChanged
void playlistChanged(int playlistID)
Definition: musicplayer.cpp:1484
MusicPlayer::sendMetadataChangedEvent
void sendMetadataChangedEvent(int trackID)
Definition: musicplayer.cpp:1332
MusicPlayer::hasClient
bool hasClient(void)
Definition: musicplayer.h:105
uint
unsigned int uint
Definition: compat.h:140
MusicPlayer::removeTrack
void removeTrack(int trackID)
Definition: musicplayer.cpp:1577
MusicPlayer::next
void next(void)
Definition: musicplayer.cpp:417
MusicPlayer::isPaused
bool isPaused(void)
Definition: musicplayer.h:103
MusicPlayerEvent::AllTracksRemovedEvent
static Type AllTracksRemovedEvent
Definition: musicplayer.h:45
MusicPlayer::m_allowRestorePos
bool m_allowRestorePos
Definition: musicplayer.h:229
MusicPlayer::updateLastplay
void updateLastplay(void)
Definition: musicplayer.cpp:1267
MusicPlayer::showMiniPlayer
void showMiniPlayer(void) const
Definition: musicplayer.cpp:1116
MusicPlayer
Definition: musicplayer.h:55
MusicPlayer::m_updatedLastplay
bool m_updatedLastplay
Definition: musicplayer.h:228
MusicPlayer::SHUFFLE_RANDOM
@ SHUFFLE_RANDOM
Definition: musicplayer.h:165
StreamList
QList< MusicMetadata * > StreamList
Definition: musicmetadata.h:473
MusicPlayer::PLAYMODE_TRACKSPLAYLIST
@ PLAYMODE_TRACKSPLAYLIST
Definition: musicplayer.h:64
MusicPlayer::getNextMetadata
MusicMetadata * getNextMetadata(void)
get the metadata for the next track in the playlist
Definition: musicplayer.cpp:1167
MainVisual
Definition: mainvisual.h:34
MusicPlayer::getPlayedTracksList
QList< MusicMetadata * > & getPlayedTracksList(void)
Definition: musicplayer.h:130
MusicPlayer::decoderHandlerReady
void decoderHandlerReady(void)
Definition: musicplayer.cpp:1504
MusicPlayer::previous
void previous(void)
Definition: musicplayer.cpp:454
MusicPlayer::m_visualisers
QSet< QObject * > m_visualisers
Definition: musicplayer.h:220
MusicPlayer::getDecoderHandler
DecoderHandler * getDecoderHandler(void)
Definition: musicplayer.h:116
MusicPlayer::decSpeed
void decSpeed()
Definition: musicplayer.cpp:1320
MusicPlayerEvent::TrackUnavailableEvent
static Type TrackUnavailableEvent
Definition: musicplayer.h:44
MusicPlayer::activePlaylistChanged
void activePlaylistChanged(int trackID, bool deleted)
Definition: musicplayer.cpp:1421
MusicPlayer::m_canShowPlayer
bool m_canShowPlayer
Definition: musicplayer.h:225
MusicPlayer::setSpeed
void setSpeed(float speed)
Definition: musicplayer.cpp:1305
MusicPlayer::setRepeatMode
void setRepeatMode(RepeatMode mode)
Definition: musicplayer.h:181
MusicPlayer::m_repeatMode
RepeatMode m_repeatMode
Definition: musicplayer.h:234
MusicPlayer::REPEAT_OFF
@ REPEAT_OFF
Definition: musicplayer.h:158
MusicPlayer::RepeatMode
RepeatMode
Definition: musicplayer.h:158
MusicPlayer::addTrack
void addTrack(int trackID, bool updateUI)
Definition: musicplayer.cpp:1590
MusicPlayer::SHUFFLE_ALBUM
@ SHUFFLE_ALBUM
Definition: musicplayer.h:167
MusicPlayerEvent::PlaylistChangedEvent
static Type PlaylistChangedEvent
Definition: musicplayer.h:50
audiooutput.h
MusicPlayerEvent::VolumeChangeEvent
static Type VolumeChangeEvent
Definition: musicplayer.h:41
MusicPlayer::m_playedList
QList< MusicMetadata * > m_playedList
Definition: musicplayer.h:246
MusicPlayer::getSpeed
float getSpeed() const
Definition: musicplayer.h:92
MusicPlayerEvent::TrackRemovedEvent
static Type TrackRemovedEvent
Definition: musicplayer.h:43
MusicPlayer::customEvent
void customEvent(QEvent *event) override
Definition: musicplayer.cpp:542
MusicPlayer::isMuted
bool isMuted(void) const
Definition: musicplayer.h:82
MusicPlayer::m_currentTime
int m_currentTime
Definition: musicplayer.h:213
MusicPlayer::m_resumeModeEditor
ResumeMode m_resumeModeEditor
Definition: musicplayer.h:236
MusicPlayer::sendVolumeChangedEvent
void sendVolumeChangedEvent(void)
Definition: musicplayer.cpp:1326
MusicPlayer::~MusicPlayer
~MusicPlayer(void) override
Definition: musicplayer.cpp:86
MusicPlayer::setAllowRestorePos
void setAllowRestorePos(bool allow)
Definition: musicplayer.h:143
MusicPlayerEvent::CDChangedEvent
static Type CDChangedEvent
Definition: musicplayer.h:49
MusicPlayer::loadSettings
void loadSettings(void)
Definition: musicplayer.cpp:212
MusicPlayer::PLAYMODE_RADIO
@ PLAYMODE_RADIO
Definition: musicplayer.h:66
MusicPlayer::sendAlbumArtChangedEvent
void sendAlbumArtChangedEvent(int trackID)
Definition: musicplayer.cpp:1344
MusicPlayer::m_oneshotMetadata
MusicMetadata * m_oneshotMetadata
Definition: musicplayer.h:215
MusicPlayer::play
void play(void)
Definition: musicplayer.cpp:304
MusicPlayer::restorePosition
void restorePosition(void)
Definition: musicplayer.cpp:1065
MusicPlayer::MAX_RESUME_MODES
@ MAX_RESUME_MODES
Definition: musicplayer.h:177
MusicPlayer::autoShowPlayer
void autoShowPlayer(bool autoShow)
This will allow/disallow the mini player showing on track changes.
Definition: musicplayer.h:108
MusicPlayer::sendCDChangedEvent
void sendCDChangedEvent(void)
Definition: musicplayer.cpp:1356
LASTPLAY_DELAY
#define LASTPLAY_DELAY
Definition: musicplayer.h:15
MusicPlayer::playFile
void playFile(const MusicMetadata &mdata)
Definition: musicplayer.cpp:223
MusicPlayer::m_isPlaying
bool m_isPlaying
Definition: musicplayer.h:223
musicbrainzngs.caa.hostname
string hostname
Definition: caa.py:17
MusicPlayer::stop
void stop(bool stopAll=false)
Definition: musicplayer.cpp:237
MusicPlayer::m_errorCount
int m_errorCount
Definition: musicplayer.h:251
MusicPlayer::m_playSpeed
float m_playSpeed
Definition: musicplayer.h:239
kMuteAll
@ kMuteAll
Definition: volumebase.h:10
MusicPlayer::getCanShowPlayer
bool getCanShowPlayer(void) const
Definition: musicplayer.h:113
MusicPlayer::getBufferStatus
void getBufferStatus(int *bufferAvailable, int *bufferSize) const
Definition: musicplayer.cpp:944
MusicPlayer::canShowPlayer
void canShowPlayer(bool canShow)
This will allow/disallow the mini player showing even using its jumppoint.
Definition: musicplayer.h:112
MusicPlayerEvent::AlbumArtChangedEvent
static Type AlbumArtChangedEvent
Definition: musicplayer.h:48
MusicPlayer::getVolume
uint getVolume(void) const
Definition: musicplayer.cpp:1389
gPlayer
MPUBLIC MusicPlayer * gPlayer
Definition: musicplayer.cpp:35
MusicPlayerEvent::MusicPlayerEvent
MusicPlayerEvent(Type type, uint vol, bool muted)
Definition: musicplayer.h:26
MusicPlayer::m_isAutoplay
bool m_isAutoplay
Definition: musicplayer.h:224
musicmetadata.h
AudioOutput::IsPaused
virtual bool IsPaused(void) const =0
MusicPlayer::addListener
void addListener(QObject *listener)
Definition: musicplayer.cpp:143
MusicPlayer::RESUME_EXACT
@ RESUME_EXACT
Definition: musicplayer.h:176
mythobservable.h
MusicPlayer::getCurrentTrackTime
int getCurrentTrackTime(void) const
Definition: musicplayer.h:136
MusicPlayer::ShuffleMode
ShuffleMode
Definition: musicplayer.h:164
MusicPlayer::MAX_SHUFFLE_MODES
@ MAX_SHUFFLE_MODES
Definition: musicplayer.h:169
MusicPlayer::REPEAT_ALL
@ REPEAT_ALL
Definition: musicplayer.h:160
MusicPlayer::moveTrackUpDown
void moveTrackUpDown(bool moveUp, int whichTrack)
Definition: musicplayer.cpp:1015