Implement AutoSink::pause()

This fixes a noticeable delay when using the ALSA sink via AutoSink.

Signed-off-by: mio <stigma@disroot.org>
issue/4/reduce-alsa-delay
mio 7 days ago
parent 433470e252
commit b1e736de5f

@ -109,6 +109,14 @@ bool AutoSink::writeFrame(AudioFrame* frame)
return m_data->sink->writeFrame(frame);
}
void AutoSink::pause()
{
if (m_data->sink)
{
m_data->sink->pause();
}
}
void AutoSink::drop()
{
if (m_data->sink)

@ -39,6 +39,7 @@ public:
// Writes blocking
bool writeFrame(AudioFrame *frame);
void pause() override;
void drop() override;
struct private_data;

Loading…
Cancel
Save