Revert "[client] audio: allow the audiodev to return the periodFrames"

This reverts commit 41884bfcc5.

PipeWire can change it's period size on the fly on us making this
approach invalid.
This commit is contained in:
Geoffrey McRae
2022-01-28 09:58:57 +11:00
parent c2a766c2ee
commit a0477466d2
4 changed files with 49 additions and 69 deletions

View File

@@ -47,11 +47,11 @@ struct LG_AudioDevOps
/* setup the stream for playback but don't start it yet
* Note: the pull function returns f32 samples
*/
void (*setup)(int channels, int sampleRate, LG_AudioPullFn pullFn,
int * periodFrames);
void (*setup)(int channels, int sampleRate, LG_AudioPullFn pullFn);
/* called when there is data available to start playback */
void (*start)();
/* 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);