हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
अलग-अलग ज़ोन के लिए ऑडियो
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वाहन की पीछे की सीट पर मौजूद मनोरंजन सिस्टम में, मल्टी-ज़ोन ऑडियो के इस्तेमाल के बारे में ज़्यादा जानने के लिए, मल्टी-ज़ोन ऑडियो देखें.
डिवाइस बनाने वाली कंपनियां, किसी डिसप्ले को गाड़ी के ऑडियो ज़ोन से लिंक कर सकती हैं. उदाहरण के लिए, एक मुख्य और पीछे की सीट के मनोरंजन वाले ज़ोन वाली कार के लिए, डिवाइस बनाने वाली कंपनी के पास वेंडर पार्टीशन पर यह कॉन्फ़िगरेशन हो सकता है:
<?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
ऐप्लिकेशन लॉन्च इवेंट का पता लगाता है और यूआईडी के आधार पर ऐप्लिकेशन को डाइनैमिक तौर पर ज़ोन में असाइन करता है.
लागू करना
डिवाइस बनाने वाली कंपनियां, अपनी कॉन्फ़िगरेशन फ़ाइल में स्टैबल आईडी शामिल कर सकती हैं. इसके बारे में जानने के लिए, स्टैटिक डिसप्ले आइडेंटिफ़ायर देखें.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-07-27 (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-07-27 (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)."]]