[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 1/7] coreaudio: rename misnamed variable fake_as
From: |
Gerd Hoffmann |
Subject: |
[PULL 1/7] coreaudio: rename misnamed variable fake_as |
Date: |
Tue, 15 Dec 2020 14:48:20 +0100 |
From: Volker RĂ¼melin <vr_qemu@t-online.de>
While the variable once was used to fake audio settings, since
commit ed2a4a7941 "audio: proper support for float samples in
mixeng" this is no longer true. Rename the variable to obt_as.
This is the same naming scheme as in audio/sdlaudio.c
Tested-by: Howard Spoelstra <hsp.cat7@gmail.com>
Signed-off-by: Volker RĂ¼melin <vr_qemu@t-online.de>
Message-id: 20201213130528.5863-1-vr_qemu@t-online.de
Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
---
audio/coreaudio.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/audio/coreaudio.c b/audio/coreaudio.c
index 4b4365660fcf..0ee85052c452 100644
--- a/audio/coreaudio.c
+++ b/audio/coreaudio.c
@@ -482,7 +482,7 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct
audsettings *as,
Audiodev *dev = drv_opaque;
AudiodevCoreaudioPerDirectionOptions *cpdo = dev->u.coreaudio.out;
int frames;
- struct audsettings fake_as;
+ struct audsettings obt_as;
/* create mutex */
err = pthread_mutex_init(&core->mutex, NULL);
@@ -491,8 +491,8 @@ static int coreaudio_init_out(HWVoiceOut *hw, struct
audsettings *as,
return -1;
}
- fake_as = *as;
- as = &fake_as;
+ obt_as = *as;
+ as = &obt_as;
as->fmt = AUDIO_FORMAT_F32;
audio_pcm_init_info (&hw->info, as);
--
2.27.0
- [PULL 0/7] Audio 20201215 patches, Gerd Hoffmann, 2020/12/15
- [PULL 1/7] coreaudio: rename misnamed variable fake_as,
Gerd Hoffmann <=
- [PULL 4/7] audio: remove unused function audio_is_cleaning_up(), Gerd Hoffmann, 2020/12/15
- [PULL 5/7] cs4231: Get rid of empty property array, Gerd Hoffmann, 2020/12/15
- [PULL 3/7] coreaudio: always stop audio playback on shut down, Gerd Hoffmann, 2020/12/15
- [PULL 2/7] coreaudio: don't start playback in init routine, Gerd Hoffmann, 2020/12/15
- [PULL 7/7] audio: add sanity check, Gerd Hoffmann, 2020/12/15
- [PULL 6/7] audio: Simplify audio_bug() removing old code, Gerd Hoffmann, 2020/12/15
- Re: [PULL 0/7] Audio 20201215 patches, Peter Maydell, 2020/12/15