modules: add ASYNC flag

Add ASYNC flags for the streams that don't dequeue/queue in the realtime
process function so that an extra buffer is allocated.
This commit is contained in:
Wim Taymans 2023-06-27 13:10:20 +02:00
parent 1466982c60
commit 39165a8471
3 changed files with 5 additions and 2 deletions

View file

@ -818,6 +818,7 @@ static int create_stream(struct stream_info *info)
} else {
direction = PW_DIRECTION_INPUT;
s->stream_events.process = stream_input_process;
flags |= PW_STREAM_FLAG_ASYNC;
}
pw_stream_add_listener(s->stream,

View file

@ -1255,7 +1255,8 @@ static int setup_streams(struct impl *impl)
PW_ID_ANY,
PW_STREAM_FLAG_AUTOCONNECT |
PW_STREAM_FLAG_MAP_BUFFERS |
PW_STREAM_FLAG_RT_PROCESS,
PW_STREAM_FLAG_RT_PROCESS |
PW_STREAM_FLAG_ASYNC,
params, n_params);
spa_pod_dynamic_builder_clean(&b);

View file

@ -490,7 +490,8 @@ static int setup_streams(struct impl *impl)
PW_ID_ANY,
PW_STREAM_FLAG_AUTOCONNECT |
PW_STREAM_FLAG_MAP_BUFFERS |
PW_STREAM_FLAG_RT_PROCESS,
PW_STREAM_FLAG_RT_PROCESS |
PW_STREAM_FLAG_ASYNC,
params, n_params)) < 0)
return res;