mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-11-05 13:30:02 -05:00
modules: use pw_stream_set_rate() some more
This commit is contained in:
parent
804df3389a
commit
e1fc3de595
3 changed files with 1 additions and 4 deletions
|
|
@ -301,8 +301,7 @@ static void rtp_audio_process_capture(void *data)
|
|||
|
||||
if (impl->separate_sender) {
|
||||
/* apply the DLL rate */
|
||||
SPA_FLAG_SET(impl->io_rate_match->flags, SPA_IO_RATE_MATCH_FLAG_ACTIVE);
|
||||
impl->io_rate_match->rate = impl->ptp_corr;
|
||||
pw_stream_set_rate(impl->stream, impl->ptp_corr);
|
||||
}
|
||||
|
||||
if ((buf = pw_stream_dequeue_buffer(impl->stream)) == NULL) {
|
||||
|
|
|
|||
|
|
@ -77,7 +77,6 @@ static void rtp_opus_process_playback(void *data)
|
|||
target_buffer, error, corr);
|
||||
|
||||
pw_stream_set_rate(impl->stream, 1.0 / corr);
|
||||
|
||||
}
|
||||
spa_ringbuffer_read_data(&impl->ring,
|
||||
impl->buffer,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue