OSDN Git Service

audio: replace open-coded buffer arithmetic
authorVolker Rümelin <vr_qemu@t-online.de>
Tue, 1 Mar 2022 19:12:57 +0000 (20:12 +0100)
committerGerd Hoffmann <kraxel@redhat.com>
Fri, 4 Mar 2022 10:05:13 +0000 (11:05 +0100)
commit18404ff111e43d218b36b69ae002cae58acef352
treec9bdc100da5ea814ef10c2d5c6b0d7c43cd463a9
parent3a4d06f26f2606dd5029b05b4aff97f198455249
audio: replace open-coded buffer arithmetic

Replace open-coded buffer arithmetic with the new function
audio_ring_posb(). That's the position in backward direction
of a given point at a given distance.

Signed-off-by: Volker Rümelin <vr_qemu@t-online.de>
Reviewed-by: Akihiko Odaki <akihiko.odaki@gmail.com>
Message-Id: <20220301191311.26695-1-vr_qemu@t-online.de>
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
audio/audio.c
audio/audio_int.h
audio/coreaudio.c
audio/sdlaudio.c