19 #ifndef DRUMSTICK_PLAYTHREAD_H 20 #define DRUMSTICK_PLAYTHREAD_H 24 #include <QReadWriteLock> 33 #if defined(DRUMSTICK_STATIC) 34 #define DRUMSTICK_ALSA_EXPORT 36 #if defined(drumstick_alsa_EXPORTS) 37 #define DRUMSTICK_ALSA_EXPORT Q_DECL_EXPORT 39 #define DRUMSTICK_ALSA_EXPORT Q_DECL_IMPORT 64 virtual void run()
override;
84 virtual bool hasNext() = 0;
102 void playbackFinished();
107 void playbackStopped();
110 void start( QThread::Priority priority = InheritPriority );
113 virtual void sendEchoEvent(
int tick);
115 virtual void drainOutput();
116 virtual void syncOutput();
117 virtual bool stopRequested();
pollfd * m_pfds
Array of pollfd pointers.
bool m_Stopped
Stopped status.
int m_PortId
MidiPort numeric identifier.
Sequence player auxiliary class.
virtual unsigned int getEchoResolution()
Gets the echo event resolution in ticks.
int m_npfds
Number of pollfd pointers.
QReadWriteLock m_mutex
Mutex object used for synchronization.
MidiQueue * m_Queue
MidiQueue instance pointer.
Base class for the event's hierarchy.
int m_QueueId
MidiQueue numeric identifier.
virtual unsigned int getInitialPosition()
Gets the initial position in ticks of the sequence.
The QThread class provides platform-independent threads.
Classes managing ALSA Sequencer events.
MidiClient * m_MidiClient
MidiClient instance pointer.