21 #ifndef OUTPUTWRITER_P_H
22 #define OUTPUTWRITER_P_H
27 #include "recycler_p.h"
28 #include "audioparameters.h"
29 #include "channelmap.h"
37 class ChannelConverter;
43 class OutputWriter :
public QThread
47 explicit OutputWriter(QObject *parent =
nullptr);
49 virtual ~OutputWriter();
74 void seek(qint64 pos,
bool reset =
false);
90 int sampleSize()
const;
91 void updateEqSettings();
96 void dispatch(qint64 elapsed,
int bitrate);
99 void dispatchVisual(
Buffer *buffer);
100 bool prepareConverters();
101 void startVisualization();
102 void stopVisualization();
108 quint32 m_frequency = 0;
109 int m_channels = 0, m_kbps = 0;
112 qint64 m_bytesPerMillisecond = 0;
113 std::atomic_bool m_user_stop = ATOMIC_VAR_INIT(
false);
114 std::atomic_bool m_pause = ATOMIC_VAR_INIT(
false);
115 std::atomic_bool m_muted = ATOMIC_VAR_INIT(
false);
116 std::atomic_bool m_finish = ATOMIC_VAR_INIT(
false);
117 bool m_paused =
false;
118 bool m_useEq =
false;
120 qint64 m_totalWritten = 0, m_currentMilliseconds = -1;
122 Output *m_output =
nullptr;
125 ChannelConverter *m_channel_converter =
nullptr;
126 unsigned char *m_output_buf =
nullptr;
127 size_t m_output_size = 0;
The AbstractEngine class provides the internal audio converter.
Definition: audioconverter.h:31
The AudioParameters class keeps information about audio settings.
Definition: audioparameters.h:32
Audio buffer class.
Definition: buffer.h:21
This class represents audio channel mapping.
Definition: channelmap.h:31
The Effect class provides the base interface class of audio effects.
Definition: effect.h:36
The Output class provides the base interface class of audio outputs.
Definition: output.h:28
State
Definition: qmmp.h:62
AudioFormat
Definition: qmmp.h:115
@ PCM_UNKNOWN
Definition: qmmp.h:116
The QmmpSettings class provides access to global settings.
Definition: qmmpsettings.h:36
The StateHandler class allows one to track information about playback progress.
Definition: statehandler.h:35