2025 年 3 月 27 日より、AOSP のビルドとコントリビューションには aosp-main
ではなく android-latest-release
を使用することをおすすめします。詳細については、AOSP の変更をご覧ください。
マルチゾーン オーディオ
コレクションでコンテンツを整理
必要に応じて、コンテンツの保存と分類を行います。
自動車のリアシート エンターテイメント システムでマルチゾーン オーディオを使用する場合は、マルチゾーン オーディオをご覧ください。
デバイス メーカーは、自動車のオーディオ ゾーンにディスプレイをリンクできます。たとえば、メインのリアシート エンターテイメント ゾーンが 1 つある車の場合、デバイス メーカーはベンダー パーティションに次の構成を格納できます。
<?xml version="1.0" encoding="utf-8"?>
<carAudioConfigurations xmlns:car="http://schemas.android.com/apk/res-auto">
<zones>
<zone name="primary zone">
<volumeGroups>
<group>
<device address="bus001_media">
<context context="music"/>
</device>
<device address="bus002_others">
...
</device>
</group>
</volumeGroups>
<displays>
<display car:display="<display-id-1>" />
</displays>
</zone>
<zone name="rear seat">
<volumeGroups>
<group>
<device address="bus100_all">
...
</device>
</group>
</volumeGroups>
<displays>
<display car:display="<display-id-2>" />
</displays>
</zone>
</zones>
</carAudioConfigurations>
</xml>
|
CarAudioService
はこの構成ファイルを解析し、起動時のオーディオ コンテキスト(またはオーディオ使用状況)によってオーディオ ルーティングを設定します。CarAudioService
は実行時にアプリの起動イベントを検出し、UID に基づいてアプリをゾーンに動的に割り当てます。
実装
デバイス メーカーが構成ファイルに格納できる固定 ID については、静的ディスプレイ ID をご覧ください。
このページのコンテンツやコードサンプルは、コンテンツ ライセンスに記載のライセンスに従います。Java および OpenJDK は Oracle および関連会社の商標または登録商標です。
最終更新日 2025-03-26 UTC。
[[["わかりやすい","easyToUnderstand","thumb-up"],["問題の解決に役立った","solvedMyProblem","thumb-up"],["その他","otherUp","thumb-up"]],[["必要な情報がない","missingTheInformationINeed","thumb-down"],["複雑すぎる / 手順が多すぎる","tooComplicatedTooManySteps","thumb-down"],["最新ではない","outOfDate","thumb-down"],["翻訳に関する問題","translationIssue","thumb-down"],["サンプル / コードに問題がある","samplesCodeIssue","thumb-down"],["その他","otherDown","thumb-down"]],["最終更新日 2025-03-26 UTC。"],[],[],null,["# Multi-zone audio\n\nTo learn more about the use of multi-zone audio in automotive rear-seat entertainment systems,\nsee [Multi-Zone Audio](/docs/devices/automotive/audio#multi-zone).\n\nDevice manufacturers can link a display to an audio zone in a vehicle. For instance, for a car\nwith one primary and rear seat entertainment zone, a device manufacturer can have the following\nconfiguration on the vendor partition:\n\n|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| ```carbon \u003c?xml version=\"1.0\" encoding=\"utf-8\"?\u003e \u003ccarAudioConfigurations xmlns:car=\"http://schemas.android.com/apk/res-auto\"\u003e \u003czones\u003e \u003czone name=\"primary zone\"\u003e \u003cvolumeGroups\u003e \u003cgroup\u003e \u003cdevice address=\"bus001_media\"\u003e \u003ccontext context=\"music\"/\u003e \u003c/device\u003e \u003cdevice address=\"bus002_others\"\u003e ... \u003c/device\u003e \u003c/group\u003e \u003c/volumeGroups\u003e \u003cdisplays\u003e \u003cdisplay car:display=\"\u003cdisplay-id-1\u003e\" /\u003e \u003c/displays\u003e \u003c/zone\u003e \u003czone name=\"rear seat\"\u003e \u003cvolumeGroups\u003e \u003cgroup\u003e \u003cdevice address=\"bus100_all\"\u003e ... \u003c/device\u003e \u003c/group\u003e \u003c/volumeGroups\u003e \u003cdisplays\u003e \u003cdisplay car:display=\"\u003cdisplay-id-2\u003e\" /\u003e \u003c/displays\u003e \u003c/zone\u003e \u003c/zones\u003e \u003c/carAudioConfigurations\u003e \u003c/xml\u003e ``` |\n\n`CarAudioService` parses this configuration file and sets up the\naudio routing by its audio context (or audio usage) at boot time. During\nruntime, `CarAudioService` further detects an app launch event and dynamically\nassigns the app to the zone based on UID.\n\nImplementation\n--------------\n\nFor the stable ID that device manufacturers can include in their configuration\nfile, see\n[Static display identifiers](/docs/core/display/multi_display/displays#static)."]]