21 #ifndef OUTPUTWRITER_P_H 22 #define OUTPUTWRITER_P_H 26 #include "recycler_p.h" 27 #include "audioparameters.h" 28 #include "channelmap.h" 36 class ChannelConverter;
42 class OutputWriter :
public QThread
46 explicit OutputWriter(QObject *parent = 0);
48 virtual ~OutputWriter();
55 bool initialize(quint32 freq, ChannelMap map);
68 void setMuted(
bool muted);
78 void seek(qint64 pos,
bool reset =
false);
103 const ChannelMap channelMap()
const;
107 int sampleSize()
const;
108 void updateEqSettings();
113 void dispatch(qint64 elapsed,
int bitrate);
116 void dispatchVisual(
Buffer *buffer);
117 bool prepareConverters();
118 void startVisualization();
119 void stopVisualization();
126 int m_channels, m_kbps;
127 ChannelMap m_chan_map;
129 qint64 m_bytesPerMillisecond;
130 bool m_user_stop, m_pause;
134 qint64 m_totalWritten, m_currentMilliseconds;
140 ChannelConverter *m_channel_converter;
141 unsigned char *m_output_buf;
142 size_t m_output_size;
145 #endif // OUTPUTWRITER_P_H The AbstractEngine class provides the internal audio converter.
Definition: audioconverter.h:30
State
Definition: qmmp.h:52
The QmmpSettings class provides access to global settings.
Definition: qmmpsettings.h:35
The Effect class provides the base interface class of audio effects.
Definition: effect.h:35
The AudioParameters class keeps information about audio settings.
Definition: audioparameters.h:31
The StateHandler class allows one to track information about playback progress.
Definition: statehandler.h:34
The Output class provides the base interface class of audio outputs.
Definition: output.h:27
Audio buffer class.
Definition: buffer.h:20
AudioFormat
Definition: qmmp.h:105