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

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

View File

@@ -49,8 +49,9 @@ struct LG_AudioDevOps
*/
void (*setup)(int channels, int sampleRate, LG_AudioPullFn pullFn);
/* called when playback is about to start */
void (*start)(void);
/* called when there is data available to start playback
* return true if playback should start */
bool (*start)(int framesBuffered);
/* called when SPICE reports the audio stream has stopped */
void (*stop)(void);