From nobody Sun Apr 12 02:51:42 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=fail(p=reject dis=none) header.from=rsg.ci.i.u-tokyo.ac.jp Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1772605124396202.35619635390492; Tue, 3 Mar 2026 22:18:44 -0800 (PST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1vxfYL-0004EM-9i; Wed, 04 Mar 2026 01:17:49 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vxfY2-0004D0-8w for qemu-devel@nongnu.org; Wed, 04 Mar 2026 01:17:30 -0500 Received: from www3579.sakura.ne.jp ([49.212.243.89]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1vxfXz-0003Dm-Ks for qemu-devel@nongnu.org; Wed, 04 Mar 2026 01:17:29 -0500 Received: from h205.csg.ci.i.u-tokyo.ac.jp (h205.csg.ci.i.u-tokyo.ac.jp [133.11.54.205]) (authenticated bits=0) by www3579.sakura.ne.jp (8.16.1/8.16.1) with ESMTPSA id 6246H77v067747 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Wed, 4 Mar 2026 15:17:18 +0900 (JST) (envelope-from odaki@rsg.ci.i.u-tokyo.ac.jp) DKIM-Signature: a=rsa-sha256; bh=a/H7TImbmJZ+c2VyUsniI9acZE7Us9dMDZ/gN5hNhDA=; c=relaxed/relaxed; d=rsg.ci.i.u-tokyo.ac.jp; h=From:Message-Id:To:Subject:Date; s=rs20250326; t=1772605038; v=1; b=KPOMLUz8SZqUa4/aOEYGc9d2zw/Yj0kg2xZ+t4NVhEinGcZUc6gUcwhEWgxIrnWc piInmLEkdSAy9COMU/qtbKGTiOdz7ivJ5mW3XP8TUrfYkT+3hulgtdYPyPVf+mgv 65HApLhOdw1Zj8gMpjUTYFwx37vFiYAn8P8KWF1VQ64mPc3wMwCT5cqUqtEyVYgh rhWNSRHAWuX3za54/Oe9g3P/s6LL/MfAkRwwdXZyWM6rz5LUuvOUnsPJol0DCaqf LoiWUV/pXhlK8YAXquHpSNyK6qIkRK0MiSQidlYSvTNiAHgQhx+SBJpyuvZ+9MSf aUOAhsNZlwz5qa82yTGGGg== From: Akihiko Odaki Date: Wed, 04 Mar 2026 15:16:59 +0900 Subject: [PATCH v8 6/6] coreaudio: Initialize the buffer for device change MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Message-Id: <20260304-coreaudio-v8-6-bf1d40731e73@rsg.ci.i.u-tokyo.ac.jp> References: <20260304-coreaudio-v8-0-bf1d40731e73@rsg.ci.i.u-tokyo.ac.jp> In-Reply-To: <20260304-coreaudio-v8-0-bf1d40731e73@rsg.ci.i.u-tokyo.ac.jp> To: Gerd Hoffmann , =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= , Christian Schoenebeck , BALATON Zoltan Cc: qemu-devel@nongnu.org, devel@daynix.com, =?utf-8?q?Marc-Andr=C3=A9_Lureau?= , Akihiko Odaki , Phil Dennis-Jordan X-Mailer: b4 0.15-dev-5ab4c Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=49.212.243.89; envelope-from=odaki@rsg.ci.i.u-tokyo.ac.jp; helo=www3579.sakura.ne.jp X-Spam_score_int: -1 X-Spam_score: -0.2 X-Spam_bar: / X-Spam_report: (-0.2 / 5.0 requ) BAYES_00=-1.9, DKIM_INVALID=0.1, DKIM_SIGNED=0.1, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.322, RCVD_IN_VALIDITY_SAFE_BLOCKED=1.141, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: qemu development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZM-MESSAGEID: 1772605126760158500 Reallocate buffers when the active device change as the required buffer size may differ. Signed-off-by: Akihiko Odaki Reviewed-by: Phil Dennis-Jordan Acked-by: Christian Schoenebeck Reviewed-by: Christian Schoenebeck Reviewed-by: Marc-Andr=C3=A9 Lureau --- audio/coreaudio.m | 1 + 1 file changed, 1 insertion(+) diff --git a/audio/coreaudio.m b/audio/coreaudio.m index 23c3d1f80ac5..e4ec1df971c8 100644 --- a/audio/coreaudio.m +++ b/audio/coreaudio.m @@ -471,6 +471,7 @@ static OSStatus init_out_device(CoreaudioVoiceOut *core) core->device_id =3D device_id; core->device_frame_size =3D device_frame_size; core->hw.samples =3D core->buffer_count * core->device_frame_size; + audio_generic_initialize_buffer_out(&core->hw); core->ioprocid =3D ioprocid; =20 return 0; --=20 2.53.0