#include <outputwriter_p.h>
Definition at line 43 of file outputwriter_p.h.
OutputWriter::OutputWriter |
( |
QObject * |
parent = nullptr | ) |
|
|
explicit |
virtual OutputWriter::~OutputWriter |
( |
| ) |
|
|
virtual |
void OutputWriter::dispatch |
( |
qint64 |
elapsed, |
|
|
int |
bitrate |
|
) |
| |
|
private |
void OutputWriter::dispatchVisual |
( |
Buffer * |
buffer | ) |
|
|
private |
void OutputWriter::finish |
( |
| ) |
|
Requests playback to finish.
bool OutputWriter::initialize |
( |
quint32 |
freq, |
|
|
ChannelMap |
map |
|
) |
| |
Prepares object for usage and setups required audio parameters.
- Parameters
-
freq | Sample rate. |
map | Map of channels. |
- Returns
- initialization result (true - success, false - failure)
Returns selected audio parameters, i.e. passed by initialize function.
Returns output audio parameters, i.e. accepted by output device.
void OutputWriter::pause |
( |
| ) |
|
Requests playback to pause. If it was paused already, playback should resume.
bool OutputWriter::prepareConverters |
( |
| ) |
|
|
private |
virtual void OutputWriter::run |
( |
| ) |
|
|
finaloverrideprivatevirtual |
int OutputWriter::sampleSize |
( |
| ) |
const |
Returns sample size in bytes.
void OutputWriter::seek |
( |
qint64 |
time, |
|
|
bool |
reset = false |
|
) |
| |
Requests a seek to the time pos indicated, specified in milliseconds. If reset is true, this function also clears internal output buffers for faster seeking; otherwise does nothing with buffers.
void OutputWriter::startVisualization |
( |
| ) |
|
|
private |
void OutputWriter::status |
( |
| ) |
|
|
private |
void OutputWriter::stop |
( |
| ) |
|
Requests playback to stop.
void OutputWriter::stopVisualization |
( |
| ) |
|
|
private |
void OutputWriter::updateEqSettings |
( |
| ) |
|
bool OutputWriter::m_abr = false |
|
private |
qint64 OutputWriter::m_bytesPerMillisecond = 0 |
|
private |
int OutputWriter::m_channels = 0 |
|
private |
qint64 OutputWriter::m_currentMilliseconds = -1 |
|
private |
std::atomic_bool OutputWriter::m_finish = ATOMIC_VAR_INIT(false) |
|
private |
quint32 OutputWriter::m_frequency = 0 |
|
private |
int OutputWriter::m_kbps = 0 |
|
private |
std::atomic_bool OutputWriter::m_muted = ATOMIC_VAR_INIT(false) |
|
private |
QMutex OutputWriter::m_mutex |
|
private |
Output* OutputWriter::m_output = nullptr |
|
private |
unsigned char* OutputWriter::m_output_buf = nullptr |
|
private |
size_t OutputWriter::m_output_size = 0 |
|
private |
std::atomic_bool OutputWriter::m_pause = ATOMIC_VAR_INIT(false) |
|
private |
bool OutputWriter::m_paused = false |
|
private |
bool OutputWriter::m_skip = false |
|
private |
qint64 OutputWriter::m_totalWritten = 0 |
|
private |
bool OutputWriter::m_useEq = false |
|
private |
std::atomic_bool OutputWriter::m_user_stop = ATOMIC_VAR_INIT(false) |
|
private |
The documentation for this class was generated from the following file: