bluetooth: allow increasing output bitrate

Bluetooth thread may ask encoder to reduce bitrate if writing is not keeping up
with inputs or writing to bluetooth socket takes too much time.

Assuming conditions leading to reduced bitrate are intermittent, allow periodic
attempts to increase encoder bitrate, by default at most twice per second.

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/481>
This commit is contained in:
Igor V. Kovalenko 2021-01-20 12:51:14 +03:00 committed by PulseAudio Marge Bot
parent ac33a01f30
commit 9699511215
3 changed files with 34 additions and 0 deletions

View file

@ -110,6 +110,7 @@ struct pa_bluetooth_device {
bool valid;
bool autodetect_mtu;
bool codec_switching_in_progress;
uint32_t output_rate_refresh_interval_ms;
/* Device information */
char *path;