diff options
author | Lennart Poettering <lennart@poettering.net> | 2008-06-20 22:32:41 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2008-06-20 22:32:41 +0200 |
commit | add6c0361ada8c2aa632392efcec538a07af5bce (patch) | |
tree | 80587468bf54e6e7ac4fac46ab04306a512da84c /src/modules/module-alsa-sink.c | |
parent | 1420e1d1b5430d1963f652972f2bf72fadfc561e (diff) | |
download | pulseaudio-add6c0361ada8c2aa632392efcec538a07af5bce.tar.gz |
Rework module-combine to work with glitch-free core; add new max_request field to pa_sink
Diffstat (limited to 'src/modules/module-alsa-sink.c')
-rw-r--r-- | src/modules/module-alsa-sink.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/modules/module-alsa-sink.c b/src/modules/module-alsa-sink.c index 7bad073a8..6765775a0 100644 --- a/src/modules/module-alsa-sink.c +++ b/src/modules/module-alsa-sink.c @@ -600,6 +600,8 @@ static int update_sw_params(struct userdata *u) { return err; } + pa_sink_set_max_request(u->sink, u->hwbuf_size - u->hwbuf_unused_frames * u->frame_size); + return 0; } @@ -1316,6 +1318,7 @@ int pa__init(pa_module*m) { fix_tsched_watermark(u); u->sink->thread_info.max_rewind = use_tsched ? u->hwbuf_size : 0; + u->sink->thread_info.max_request = u->hwbuf_size; pa_sink_set_latency_range(u->sink, !use_tsched ? pa_bytes_to_usec(u->hwbuf_size, &ss) : (pa_usec_t) -1, |