mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
audio: add more audio rate control functions
The next patch needs two new rate control functions. The first one returns the bytes needed at call time to maintain the selected rate. The second one adjusts the bytes actually sent. Split the audio_rate_get_bytes() function into these two functions and reintroduce audio_rate_get_bytes(). Signed-off-by: Volker Rümelin <vr_qemu@t-online.de> Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com> Message-Id: <20220923183640.8314-5-vr_qemu@t-online.de> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
5a9d7ae251
commit
02732641c0
2 changed files with 26 additions and 11 deletions
|
@ -263,6 +263,8 @@ typedef struct RateCtl {
|
|||
} RateCtl;
|
||||
|
||||
void audio_rate_start(RateCtl *rate);
|
||||
size_t audio_rate_peek_bytes(RateCtl *rate, struct audio_pcm_info *info);
|
||||
void audio_rate_add_bytes(RateCtl *rate, size_t bytes_used);
|
||||
size_t audio_rate_get_bytes(struct audio_pcm_info *info, RateCtl *rate,
|
||||
size_t bytes_avail);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue