fftools/sync_queue: allow requesting a specific number of audio samples

This will be made useful in following commits.
This commit is contained in:
Anton Khirnov
2023-03-23 08:38:19 +01:00
parent 81cca3dae3
commit f9d3c06533
2 changed files with 185 additions and 9 deletions

View File

@@ -71,6 +71,16 @@ int sq_add_stream(SyncQueue *sq, int limiting);
void sq_limit_frames(SyncQueue *sq, unsigned int stream_idx,
uint64_t max_frames);
/**
* Set a constant output audio frame size, in samples. Can only be used with
* SYNC_QUEUE_FRAMES queues and audio streams.
*
* All output frames will have exactly frame_samples audio samples, except
* possibly for the last one, which may have fewer.
*/
void sq_frame_samples(SyncQueue *sq, unsigned int stream_idx,
int frame_samples);
/**
* Submit a frame for the stream with index stream_idx.
*