हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
ऑडियो की पावर मैनेजमेंट
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
वाहन के हिसाब से पावर मैनेजमेंट की सुविधा देने के लिए, Android एक CarPowerManagementService
सेवा और CarPowerManager
इंटरफ़ेस उपलब्ध कराता है. बिजली की नीति का असर, Android Automotive OS (AAOS) के ऑडियो स्टैक और ऑडियो कॉम्पोनेंट android.car.hardware.power.PowerComponent.AUDIO
के साथ ऑडियो एचएएल पर पड़ता है. ज़्यादा जानने के लिए, पावर मैनेजमेंट लेख पढ़ें.
CarAudioService
में, डाइनैमिक ऑडियो रूटिंग चालू होने पर, CarAudioPowerListener
को CarPowerManagementService
पर रजिस्टर किया जाता है. इससे CarAudioService
को ऑडियो से जुड़ी पावर नीति में होने वाले बदलावों के बारे में सुनने में मदद मिलती है.
पावर से जुड़ी नीति के तहत ऑडियो बंद होने पर, ये कार्रवाइयाँ होती हैं:
सिर्फ़ ऑडियो एट्रिब्यूट के इस्तेमाल से जुड़े ज़रूरी अनुरोधों को ही बनाए रखा जाता है. फ़ोकस के लिए किए गए अन्य अनुरोधों को छोड़ दिया जाता है.
ऑडियो एट्रिब्यूट के ऐसे इस्तेमाल के लिए, फ़ोकस करने के सभी अनुरोध अस्वीकार कर दिए जाते हैं जो ज़रूरी नहीं हैं.
अगर कार के वॉल्यूम ग्रुप को म्यूट करने की सुविधा का इस्तेमाल किया जाता है, तो कार के उन वॉल्यूम ग्रुप को म्यूट कर दिया जाता है जिनमें अहम ऑडियो एट्रिब्यूट के इस्तेमाल के लिए ऑडियो कॉन्टेक्स्ट मौजूद नहीं होता.
ऑडियो एट्रिब्यूट के इस्तेमाल के इन तरीकों को अहम माना जाता है:
सैंपल कॉन्फ़िगरेशन (वर्शन 2) में, हमारा सुझाव है कि आप प्राइमरी ऑडियो ज़ोन में मौजूद अन्य कॉन्टेक्स्ट से, आपातकालीन और सुरक्षा के साथ-साथ सिस्टम की आवाज़ों के लिए अलग-अलग वॉल्यूम ग्रुप का इस्तेमाल करें. इस तरह, ऑडियो बंद होने पर, ऑडियो एट्रिब्यूट के सभी ग़ैर-ज़रूरी इस्तेमाल के लिए वॉल्यूम ग्रुप म्यूट हो जाते हैं. हालांकि, आपातकालीन और सुरक्षा से जुड़ी आवाज़ें म्यूट नहीं होतीं.
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. Java और OpenJDK, Oracle और/या इससे जुड़ी हुई कंपनियों के ट्रेडमार्क या रजिस्टर किए हुए ट्रेडमार्क हैं.
आखिरी बार 2025-06-12 (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-06-12 (UTC) को अपडेट किया गया."],[],[],null,["# Audio power management\n\nTo support vehicle-specific power management, Android provides a\n`CarPowerManagementService` service and a `CarPowerManager` interface. The power\npolicy affects the Android Automotive OS (AAOS) audio stack and the audio HAL\nwith the audio component, `android.car.hardware.power.PowerComponent.AUDIO`. To\nlearn more, see [Power Management](/docs/automotive/power/power).\n\nIn `CarAudioService`, a `CarAudioPowerListener` is registered on\n`CarPowerManagementService` when the dynamic audio routing is enabled. This\nallows `CarAudioService` to listen to power policy changes related to audio.\nWhen audio is disabled by the power policy, the following actions take place:\n\n- Only focus requests of critical audio attribute usages are retained. Other\n focus requests are abandoned.\n\n- All incoming focus requests of non-critical audio attribute usages are\n rejected.\n\n- If car volume group muting is used, car volume groups that do not contain\n audio context for critical audio attribute usages are muted.\n\nThe following audio attribute usages are considered as critical:\n\n- Emergency\n- Safety\n\nIn\n[Sample configuration (version 2)](/docs/automotive/audio/audio-policy-configuration#sample),\nwe recommend you use separate volume groups for system sounds, including emergency\nand safety, from other contexts in the primary audio zone. In this way, volume\ngroups for all non-critical audio attribute usages are muted when audio is\ndisabled, while emergency and safety sounds remain unmuted."]]