mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
don't fiddle with latency range because we cannot adjust it dynamically
This commit is contained in:
parent
0316dba9d1
commit
b815a1c7eb
1 changed files with 4 additions and 7 deletions
|
|
@ -69,7 +69,7 @@ PA_MODULE_USAGE(
|
|||
|
||||
#define DEFAULT_ADJUST_TIME 10
|
||||
|
||||
#define REQUEST_LATENCY_USEC (PA_USEC_PER_MSEC * 200)
|
||||
#define BLOCK_USEC (PA_USEC_PER_MSEC * 200)
|
||||
|
||||
static const char* const valid_modargs[] = {
|
||||
"sink_name",
|
||||
|
|
@ -817,7 +817,7 @@ static int output_create_sink_input(struct output *o) {
|
|||
o->sink_input->kill = sink_input_kill_cb;
|
||||
o->sink_input->userdata = o;
|
||||
|
||||
pa_sink_input_set_requested_latency(o->sink_input, REQUEST_LATENCY_USEC);
|
||||
pa_sink_input_set_requested_latency(o->sink_input, BLOCK_USEC);
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
@ -1088,11 +1088,8 @@ int pa__init(pa_module*m) {
|
|||
pa_sink_set_rtpoll(u->sink, u->rtpoll);
|
||||
pa_sink_set_asyncmsgq(u->sink, u->thread_mq.inq);
|
||||
|
||||
pa_sink_set_latency_range(u->sink, REQUEST_LATENCY_USEC, REQUEST_LATENCY_USEC);
|
||||
u->block_usec = u->sink->thread_info.max_latency;
|
||||
|
||||
u->sink->thread_info.max_request =
|
||||
pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec);
|
||||
u->block_usec = BLOCK_USEC;
|
||||
pa_sink_set_max_request(u->sink, pa_usec_to_bytes(u->block_usec, &u->sink->sample_spec));
|
||||
|
||||
if (!u->automatic) {
|
||||
const char*split_state;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue