PulseAudio: just start stream uncorked
There was no reason to cork it when it was uncorked right after. Playback will start when the buffer is full anyway.
This commit is contained in:
parent
00d3ce6b62
commit
c2db9b4606
@ -302,8 +302,7 @@ PulseAudioBackend::init_pulse ()
|
||||
|
||||
/* https://freedesktop.org/software/pulseaudio/doxygen/def_8h.html#a6966d809483170bc6d2e6c16188850fc */
|
||||
pa_stream_flags_t sf = (pa_stream_flags_t) (
|
||||
(int)PA_STREAM_START_CORKED
|
||||
| (int)PA_STREAM_NO_REMAP_CHANNELS
|
||||
(int)PA_STREAM_NO_REMAP_CHANNELS
|
||||
| (int)PA_STREAM_NO_REMIX_CHANNELS
|
||||
| (int)PA_STREAM_EARLY_REQUESTS // request more data as soon as minreq is reached
|
||||
);
|
||||
@ -987,16 +986,6 @@ PulseAudioBackend::main_process_thread ()
|
||||
manager.registration_callback ();
|
||||
manager.graph_order_callback ();
|
||||
|
||||
/* begin streaming */
|
||||
if (!cork_pulse (false)) {
|
||||
PBD::error << _("PulseAudioBackend::main_process_thread initial uncork failed.") << endmsg;
|
||||
_active = false;
|
||||
if (_run) {
|
||||
engine.halted_callback ("PulseAudio: cannot uncork stream");
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
|
||||
_dsp_load_calc.reset ();
|
||||
stream_latency_update_cb (p_stream, this);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user