3#ifndef QFFMPEGAUDIOENCODER_P_H
4#define QFFMPEGAUDIOENCODER_P_H
8#include "private/qplatformmediarecorder_p.h"
34 void retrievePackets();
42 std::queue<QAudioBuffer> m_audioBufferQueue;
45 const std::chrono::microseconds m_maxQueueDuration = std::chrono::seconds(5);
47 std::chrono::microseconds m_queueDuration{ 0 };
49 AVStream *m_stream =
nullptr;
54 qint64 m_samplesWritten = 0;
55 const AVCodec *m_avCodec =
nullptr;
AudioEncoder(RecordingEngine &recordingEngine, const QAudioFormat &sourceFormat, const QMediaEncoderSettings &settings)
void addBuffer(const QAudioBuffer &buffer)
void cleanup() override
Called on this thread before thread exits.
bool hasData() const override
Must return true when data is available for processing.
void processOne() override
Process one work item.
bool checkIfCanPushFrame() const override
void init() override
Called on this thread when thread starts.
std::unique_ptr< AVCodecContext, AVDeleter< decltype(&avcodec_free_context), &avcodec_free_context > > AVCodecContextUPtr
std::unique_ptr< SwrContext, AVDeleter< decltype(&swr_free), &swr_free > > SwrContextUPtr
Combined button and popup list for selecting options.
QSettings settings("MySoft", "Star Runner")
[0]