alsa: implement set_io and handle position io

Use position io for deciding the size of the output buffers in
alsasrc
This commit is contained in:
Wim Taymans 2018-10-24 10:27:57 +02:00
parent 4aab226047
commit 2206deb3e8
4 changed files with 39 additions and 12 deletions

View file

@ -93,6 +93,7 @@ struct state {
struct spa_io_buffers *io;
struct spa_io_range *range;
struct spa_io_clock *clock;
struct spa_io_position *position;
struct buffer buffers[MAX_BUFFERS];
unsigned int n_buffers;