[client] audio: allow the audiodev to determine the start fill level

This commit is contained in:
Geoffrey McRae committed 2022-01-19 01:52:19 +11:00
1 parent 46da447429
commit 04ae9217e8
4 files changed
+36 -23

No files matched your search

+7 -2
View File
@@ -288,15 +288,20 @@ static void pulseaudio_setup(int channels, int sampleRate,
pa_threaded_mainloop_unlock(pa.loop);
}
static void pulseaudio_start(void)
static bool pulseaudio_start(int framesBuffered)
{
if (!pa.sink)
return;
return false;
if (framesBuffered < pa.sinkStart)
return false;
pa_threaded_mainloop_lock(pa.loop);
pa_stream_cork(pa.sink, 0, NULL, NULL);
pa.sinkCorked = false;
pa_threaded_mainloop_unlock(pa.loop);
return true;
}
static void pulseaudio_stop(void)