हमारा सुझाव है कि 27 मार्च, 2025 से AOSP को बनाने और उसमें योगदान देने के लिए, aosp-main
के बजाय android-latest-release
का इस्तेमाल करें. ज़्यादा जानकारी के लिए, AOSP में हुए बदलाव लेख पढ़ें.
हाई रिज़ॉल्यूशन वाला ऑडियो
संग्रह की मदद से व्यवस्थित रहें
अपनी प्राथमिकताओं के आधार पर, कॉन्टेंट को सेव करें और कैटगरी में बांटें.
Android 10 रिलीज़ में, हाई रिज़ॉल्यूशन ऑडियो के लिए ये सुधार किए गए हैं:
- फ़्लोट: WAV, FLAC कोडेक, और एक्सट्रैक्टर को अपडेट किया गया है, ताकि फ़्लोट (24 बिट से ज़्यादा बिट की सटीक जानकारी) का इस्तेमाल किया जा सके. डाउनमिक्स और वर्चुअलाइज़र इफ़ेक्ट को फ़्लोट में अपडेट किया गया है.
MediaPlayer (NuPlayer) में, जगह की सटीक जानकारी देने की सुविधा को अपडेट किया गया है.
- ज़्यादा फ़्रीक्वेंसी: WAV, FLAC कोडेक, और एक्सट्रैक्टर को 192 किलोहर्ट्ज़ के साथ काम करने के लिए अपडेट किया गया है.
Android के डिफ़ॉल्ट इफ़ेक्ट की जांच, स्टैंडर्ड फ़्रीक्वेंसी पर 192 kHz के साथ काम करने के लिए की गई है.
स्टैंडर्ड फ़्रीक्वेंसी में 88.2 kHz, 96 kHz, 176.4 kHz, और
192 kHz शामिल हैं.
- मल्टीचैनल: Android डिवाइसों पर वीडियो चलाने के डिफ़ॉल्ट इफ़ेक्ट की जांच, आठ चैनलों के साथ मल्टीचैनल के लिए की गई है.
- समय: ऑडियो फ़्रेमवर्क में समय की जानकारी शामिल होती है.
Android 9 से, इन सुधारों को लागू करने के लिए, किसी पार्टनर की ज़रूरत नहीं होती:
- एक साथ चलने वाले क्लाइंट आउटपुट ट्रैक की संख्या 14 से बढ़कर 40 हो गई है. ऐसा इसलिए हुआ है, क्योंकि Android 8.x में ऐप्लिकेशन के लिए
AudioTrack
के सीमित क्लाइंट इंस्टेंस एक समस्या रहे हैं.
- क्लाइंट/सर्वर की ज़्यादा से ज़्यादा मेमोरी, 4 एमबी से बढ़कर 32 एमबी हो गई है. यह डिवाइस की कुल मेमोरी पर निर्भर करता है. इससे एक साथ ज़्यादा हाई रिज़ॉल्यूशन वाले ऑडियो ट्रैक चलाए जा सकते हैं.
- ऐप्लिकेशन और सिस्टम यूज़र इंटरफ़ेस के बीच संसाधनों के लिए हो रहे मुकाबले को रोकने के लिए, मिक्स किए गए ट्रैक की कुल संख्या 32 से बढ़कर 256 हो गई है.
आउटपुट इफ़ेक्ट में बदलाव
Android 11 रिलीज़ में हुए बदलावों के बारे में जानने के लिए, ऑडियो
इफ़ेक्ट देखें.
Android 9 रिलीज़ होने से पहले, इफ़ेक्ट चेन प्रोसेसिंग को स्टीरियो int16 सैंपल फ़ॉर्मैट में लागू किया गया था. इसकी कई सीमाएं थीं:
- सभी आउटपुट इफ़ेक्ट, फ़्लोटिंग पॉइंट ऑडियो डेटा को
int16 में बदल देते हैं. इससे सटीक डेटा नहीं मिल पाता.
- आउटपुट सिंक से, आउटपुट इफ़ेक्ट अस्वीकार कर दिए गए. इन सिंक में चैनलों की संख्या दो से ज़्यादा थी.
Android 9 रिलीज़ में, इफ़ेक्ट चेन प्रोसेसिंग
पाइपलाइन को अपग्रेड किया गया है, ताकि यह मल्टीचैनल फ़्लोट फ़ॉर्मैट के साथ काम कर सके. खास बातें:
- Android सॉफ़्टवेयर इफ़ेक्ट, पहले से ही स्टीरियो फ़्लोट पर माइग्रेट हो चुके हैं.
- लेगसी इफ़ेक्ट, फ़ॉर्मैट अडैप्टर के साथ काम करते हैं. ये ज़रूरत के हिसाब से, फ़्लोट को int16 में बदल देते हैं.
आउटपुट इफ़ेक्ट लागू करना
आउटपुट इफ़ेक्ट के लिए रेफ़रंस के तौर पर लागू करने का तरीका,
frameworks/av/media/libeffects
में उपलब्ध है.
Android 10 रिलीज़ के लिए, पार्टनर को अपने कस्टम आउटपुट इफ़ेक्ट लागू करने के लिए, ये काम करने होंगे:
- मल्टीचैनल फ़्लोट फ़ॉर्मैट के साथ काम करने के लिए, आउटपुट इफ़ेक्ट अपडेट करें:
- Int16 प्रोसेसिंग की सुविधा अब ज़रूरी नहीं है.
- आउटपुट चैनल की संख्या 2 से 8 होनी चाहिए. आने वाले समय में, इसे इस्तेमाल करने के लिए, 1 से 30 तक की संख्या को ध्यान में रखें.
- इन्सर्ट इफ़ेक्ट के लिए, इनपुट चैनल की संख्या, आउटपुट चैनल की संख्या से मेल खाती हो. सहायक इफ़ेक्ट के लिए, इनपुट चैनल की संख्या एक (मोनो) ही दिखती रहेगी.
(1 << n) - 1
के चैनल की पोज़िशन के मास्क (कैननिकल) और चैनल के इंडेक्स मास्क, दोनों के साथ काम करता है.
- अगर आपको वेंडर के लेगसी आउटपुट इफ़ेक्ट का इस्तेमाल करना है और उन्हें अपडेट नहीं किया जा सकता, तो लेगसी कोड की पुष्टि इस तरह करें:
- लेगसी आउटपुट (शामिल करें) इफ़ेक्ट,
EFFECT_CMD_SET_CONFIG
में काम न करने वाले कॉन्फ़िगरेशन को अस्वीकार करना चाहिए.
- देखें कि फ़ॉर्मैट int16 है या नहीं.
- देखें कि इनपुट और आउटपुट चैनल मास्क स्टीरियो हों.
- अगर दोनों में से कोई भी जांच पूरी नहीं होती है, तो
-EINVAL
दिखाएं.
- लेगसी आउटपुट (अतिरिक्त) इफ़ेक्ट को AudioFlinger के ज़रिए कॉन्फ़िगर किया जाता है. इसके लिए, मोनो इनपुट चैनल मास्क और संभावित तौर पर मल्टीचैनल आउटपुट चैनल मास्क का इस्तेमाल किया जाता है. यह इस बात पर निर्भर करता है कि आउटपुट सिंक मल्टीचैनल है या नहीं.
उन्हें
EFFECT_CMD_SET_CONFIG
में काम न करने वाले कॉन्फ़िगरेशन अस्वीकार करने होंगे.
- देखें कि फ़ॉर्मैट int16 है या नहीं.
- देखें कि इनपुट चैनल मास्क मोनो है और आउटपुट चैनल मास्क स्टीरियो है.
- अगर दोनों में से कोई भी जांच पूरी नहीं होती है, तो
-EINVAL
दिखाएं.
- लेगसी कोड की पुष्टि करें. यह मत मानें कि यह काम करेगा!
इस पेज पर मौजूद कॉन्टेंट और कोड सैंपल कॉन्टेंट के लाइसेंस में बताए गए लाइसेंस के हिसाब से हैं. 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,["# High-resolution audio\n\nThe Android 10 release includes the following\nimprovements for high-resolution audio:\n\n- **Float:** WAV, FLAC codecs, and extractors are updated to support float (24+ bits of lossless precision). Downmix and Virtualizer effects are updated to float. Updated precision is allowed by MediaPlayer (NuPlayer).\n- **High-frequency:** WAV, FLAC codecs, and extractors are updated to support 192 kHz. The default Android supplied effects are tested for 192 kHz support at standard frequencies. The standard frequencies permitted are 88.2 kHz, 96 kHz, 176.4 kHz, and 192 kHz.\n- **Multichannel:** Default Android playback effects are tested for multichannel support to eight channels.\n- **Timing:** Timing information is included throughout the audio framework.\n\nStarting in Android 9, the following improvements\ndon't require any partner implementation:\n\n- The number of simultaneous client output tracks increases from 14 to 40, as limited client instances of `AudioTrack` have been an issue for apps in Android 8.x.\n- Maximum client/server memory increases from 4 MB to 32 MB (depending on total device memory) to allow more simultaneous high-resolution audio tracks.\n- Total mixed tracks increases from 32 to 256 to prevent resource contention between apps and the System UI.\n\nOutput effect changes\n---------------------\n\nSee [Audio\neffects](/docs/core/audio/audio-effects) for Android 11 release changes.\n\nPrior to the Android 9 release, effect chain processing\nwas implemented in stereo int16 sample format. This had several limitations:\n\n- All output effects forced conversion from floating point audio data to int16, causing loss of precision.\n- Output effects were rejected from output sinks with a channel count greater than two.\n\nIn the Android 9 release, the effect chain processing\npipeline is upgraded to support the multichannel float format. Key points:\n\n- Android software effects are already migrated to stereo float.\n- Legacy effects are supported with format adapters, which convert float to int16 as needed.\n\nImplement output effects\n------------------------\n\nA reference implementation for output effects is available under\n`frameworks/av/media/libeffects`.\n\nPartners implementing their own custom output effects should do the\nfollowing for the Android 10 release:\n\n- Update output effects to support the multichannel float format:\n - Int16 processing support is no longer required.\n - Support output channel counts from 2--8 (for future compatibility consider counts from 1--30).\n - Support input channel counts matching output channel counts for insert effects. Auxiliary effects continue to see an input channel count of 1 (mono).\n - Support both channel position masks (canonical) and channel index masks of `(1 \u003c\u003c n) - 1`.\n- If you must continue to support legacy vendor output effects and can't update them, then verify legacy code as follows:\n - Legacy output (insert) effects **must reject** unsupported configurations in `EFFECT_CMD_SET_CONFIG`.\n - Check that the format is int16.\n - Check that the input and output channel masks are stereo.\n - If either check fails, return `-EINVAL`.\n - Legacy output (auxiliary) effects are configured by AudioFlinger with a mono input channel mask and potentially multichannel output channel masks, depending on whether the output sink is multichannel. They **must reject** unsupported configurations in `\n EFFECT_CMD_SET_CONFIG`.\n - Check that the format is int16.\n - Check that the input channel mask is mono and the output channel mask is stereo.\n - If either check fails, return `-EINVAL`.\n - Verify legacy code. Don't assume that it works!"]]