Mulai 27 Maret 2025, sebaiknya gunakan android-latest-release, bukan aosp-main, untuk mem-build dan berkontribusi pada AOSP. Untuk mengetahui informasi selengkapnya, lihat Perubahan pada AOSP.
Tetap teratur dengan koleksi
Simpan dan kategorikan konten berdasarkan preferensi Anda.
Pengujian latensi loopback audio mengukur latensi "bolak-balik", dari
awal pemutaran sinyal hingga penerimaan audio yang direkam. Meskipun pengujian ini
tidak memungkinkan pemisahan pengukuran latensi dalam pemutaran dan
perekaman sistem, pengujian ini memberikan indikasi yang baik tentang performa latensi
sistem secara keseluruhan di beberapa pasangan perangkat.
Latensi loopback diukur dengan menghasilkan sinyal di perangkat output dan
mengambil sinyal tersebut di perangkat input yang disambungkan. Sinyal yang dihasilkan adalah kumpulan
burst derau yang dapat dikenali oleh pengujian dan digunakan untuk menentukan awal
sinyal secara akurat.
Jalur latensi
Pengujian latensi loopback audio mengukur latensi tiga rute, seperti yang ditunjukkan
dalam Gambar 1:
Speaker/Mikrofon: Sinyal speaker bawaan ditangkap oleh mikrofon
bawaan. Pengujian jalur ini diperlukan di perangkat genggam, seperti
ponsel dan tablet, dan tidak diperlukan untuk perangkat non-genggam, seperti
smartwatch, TV, mobil, dan kulkas.
Colokan Headset: Sinyal dirutekan dengan
colokan loopback
dari output ke input colokan headset analog 3,5 mm.
USB: Sinyal dirutekan melalui
adaptor headset USB-ke-analog
dengan steker loopback, atau antarmuka audio USB
dengan jack output yang terhubung ke jack input. Mendapatkan nilai lulus untuk salah satu
jalur USB sudah cukup untuk lulus. Rute ini mungkin tidak tersedia untuk
beberapa perangkat Android, seperti TV dan mobil.
Panel pengujian
Panel Audio Loopback Latency Test terdiri dari bagian berikut, seperti
yang ditunjukkan pada Gambar 1.
Gambar 1. Panel pengujian latensi loopback audio.
Utilitas dukungan
Pengguna harus menjalankan utilitas berikut sebelum memulai pengujian:
Kalibrasi Audio: Untuk menganalisis audio yang direkam secara efektif, penting
untuk menghasilkan sinyal output pada tingkat yang memadai.
Kalibrasi Audio memanggil
panel Kalibrasi Loopback Audio,
yang digunakan untuk memastikan level sinyal yang sesuai.
Audio Devices: Memulai dialog yang menampilkan semua perangkat audio
yang didukung dan terhubung ke DUT. Lihat
panel Perangkat Audio untuk mengetahui informasi
selengkapnya.
Gambar 2. Utilitas dukungan pengujian latensi loopback audio.
Bagian konfigurasi DUT
Bagian ini menampilkan informasi tentang konfigurasi
DUT seperti yang ditunjukkan pada Gambar 1. Atribut konfigurasi berikut menentukan,
sebagian, kriteria lulus:
Pro Audio: DUT mendeklarasikan flag Pro Audio yang menentukan bahwa DUT
mendukung performa dan fitur audio tingkat Profesional seperti
dukungan MIDI.
Latens Rendah: DUT mendeklarasikan flag Latens Rendah yang menentukan bahwa
DUT mendukung latensi maksimum rendah untuk pemutaran dan perekaman audio.
MPC: Tingkat Media Performance Class yang dideklarasikan oleh DUT.
MMAP: DUT mendukung pemutaran audio mode MMAP.
MMAP Eksklusif: DUT mendukung pemutaran mode eksklusif MMAP.
Jam: DUT telah ditentukan sebagai jam.
TV: DUT telah ditentukan sebagai televisi.
Kendaraan bermotor: DUT telah ditentukan sebagai kendaraan bermotor.
Perangkat genggam: DUT telah ditentukan sebagai perangkat genggam, yaitu
ponsel atau tablet.
Bagian pengujian
Untuk setiap rute, bagian pengujian berisi dua elemen:
Start: Menjalankan bagian pengujian. Tombol diaktifkan saat
ditentukan bahwa DUT mendukung rute tertentu yang tersedia.
Teks petunjuk/proses/status: Menampilkan petunjuk untuk mengaktifkan
bagian pengujian, status bagian pengujian saat berjalan, dan
hasil bagian pengujian saat selesai.
Bagian
Deskripsi
Pengujian speaker dan mikrofon
Start diaktifkan kecuali jika DUT tidak mendukung speaker internal
atau mikrofon internal, seperti di TV atau perangkat mobil.
Pengujian jack headset
Start diaktifkan jika DUT mendukung jack headset analog DAN
Plug loopback audio
dicolokkan ke jack headset Analog 3,5 mm di DUT.
Pengujian USB
Start diaktifkan jika DUT mendukung koneksi audio USB DAN
perangkat audio USB terhubung.
Hasil
Menampilkan hasil untuk pengujian secara keseluruhan.
Proses pengujian
Untuk setiap rute yang didukung, lakukan hal berikut:
Hubungkan periferal loopback yang sesuai untuk pengujian headset analog dan USB.
Untuk pengujian speaker dan Mikrofon, letakkan DUT di permukaan datar di ruangan
yang tenang. Periferal yang diperlukan tercantum dalam
Periferal audio CTS Verifier.
Saat pengujian untuk setiap bagian pengujian selesai, bagian Hasil akan diperbarui untuk
mencerminkan status pengujian secara keseluruhan.
Jika semua rute yang diperlukan telah diuji, dan setiap pengujian memenuhi kriteria latensi
untuk rute tersebut seperti yang ditentukan dalam CDD,
PASS akan diaktifkan.
Konten dan contoh kode di halaman ini tunduk kepada lisensi yang dijelaskan dalam Lisensi Konten. Java dan OpenJDK adalah merek dagang atau merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2025-07-27 UTC.
[[["Mudah dipahami","easyToUnderstand","thumb-up"],["Memecahkan masalah saya","solvedMyProblem","thumb-up"],["Lainnya","otherUp","thumb-up"]],[["Informasi yang saya butuhkan tidak ada","missingTheInformationINeed","thumb-down"],["Terlalu rumit/langkahnya terlalu banyak","tooComplicatedTooManySteps","thumb-down"],["Sudah usang","outOfDate","thumb-down"],["Masalah terjemahan","translationIssue","thumb-down"],["Masalah kode / contoh","samplesCodeIssue","thumb-down"],["Lainnya","otherDown","thumb-down"]],["Terakhir diperbarui pada 2025-07-27 UTC."],[],[],null,["# Audio loopback latency test\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\nThe audio loopback latency test measures \"round-trip\" latency, from the\nstart of signal playback to the receipt of the captured audio. While this test\ndoesn't allow for the separation of the latency measurements in the playback and\ncapture of the system, it gives a good indication of overall latency performance\nof the system over several device pairs.\n\nLoopback latency is measured by generating a signal on an output device and\ncapturing that signal on a paired input device. The generated signal is a set of\nnoise bursts that can be recognized by the test and is used to accurately\ndetermine the start of the signal.\n\nLatency paths\n-------------\n\nThe audio loopback latency test measures the latency of three routes, as shown\nin Figure 1:\n\n- **Speaker/Mic:** The built-in speaker signal is captured by the built-in\n microphone. Testing this path is required on handheld devices, such as\n phones and tablets, and isn't required for nonhandheld devices, such as\n watches, TVs, automobiles, and refrigerators.\n\n- **Headset Jack:** The signal is routed with a\n [loopback plug](/docs/compatibility/cts/audio-peripherals#audio-loopback-plug)\n from the output to the input of the 3.5 mm analog headset jack.\n\n| **Note:** This route isn't supported on all Android devices.\n\n- **USB:** The signal is routed through either a [USB-to-analog headset adapter](/docs/compatibility/cts/audio-peripherals#usb-analog-headset-adapter) with a loopback plug, or a [USB audio interface](/docs/compatibility/cts/audio-peripherals#usb-audio-interface) with output jacks connected to input jacks. Obtaining a passing value for either of the USB routes is sufficient to pass. This route might not be available for some Android devices, such as TV and automobile.\n\nTest panel\n----------\n\nThe **Audio Loopback Latency Test** panel consists of the following sections, as\nshown in Figure 1.\n\n**Figure 1.** Audio loopback latency test panel.\n\n### Support utilities\n\nThe user needs to run the following utilities before starting the test:\n\n- **Calibrate Audio:** To effectively analyze the captured audio, it's\n important to generate an output signal at an adequate level.\n **Calibrate Audio** invokes the\n [Audio Loopback Calibration panel](/docs/compatibility/cts/audio-loopback-calib),\n which is used to ensure an appropriate signal level.\n\n- **Audio Devices:** Starts a dialog that displays all of the audio devices\n that are supported by and connected to the DUT. See\n [Audio Devices panel](/docs/compatibility/cts/audio-devices-panel) for more\n information.\n\n**Figure 2.** Audio loopback latency test support utilities.\n\n### DUT configuration section\n\nThis section displays information about the configuration of\nthe DUT as shown in Figure 1. The following configuration attributes determine,\nin part, the pass criteria:\n\n- **Pro Audio:** The DUT declares the *Pro Audio* flag specifying that the DUT\n supports a *Professional* level of audio performance and features such as\n MIDI support.\n\n- **Low Latency:** The DUT declares the *Low Latency* flag specifying that the\n DUT supports a low maximum latency for audio playback and capture.\n\n- **MPC:** The *Media Performance Class* level declared by the DUT.\n\n- **MMAP:** The DUT supports MMAP mode audio playback.\n\n- **MMAP Exclusive:** The DUT supports MMAP exclusive mode playback.\n\n- **Watch:** The DUT has been determined to be a watch.\n\n- **TV:** The DUT has been determined to be a television.\n\n- **Automobile:** The DUT has been determined to be an automobile.\n\n- **Handheld:** The DUT has been determined to be a *handheld* device, that\n is, either a phone or a tablet.\n\n### Test sections\n\nFor each route, the test section contains two elements:\n\n- **Start:** Executes the test section. The button is enabled when it's determined that the DUT supports a given available route.\n- **Instruction/process/status text:** Displays instructions for enabling the test section, the status of the test section while it's running, and the results of a test section when complete.\n\n| **Note:** Each test section supported by the DUT must pass in order for the overall test to pass.\n\n| Section | Description |\n|----------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| Speaker and mic test | **Start** is enabled unless the DUT doesn't support either an internal speaker or internal microphone, as in a TV or automobile device. |\n| Headset jack test | **Start** is enabled if the DUT supports an analog headset jack AND an [Audio loopback plug](/docs/compatibility/cts/audio-peripherals#audio-loopback-plug) is plugged in to an Analog 3.5 mm headset jack on the DUT. |\n| USB test | **Start** is enabled if the DUT supports a USB audio connection AND a USB audio device is connected. |\n| Results | Displays the results for the overall test. |\n\nTest process\n------------\n\nFor each supported route, do the following:\n\n1. Connect the appropriate loopback peripheral for analog headset and USB tests. For the speaker and Mic test, place the DUT on a flat surface in a quiet room. The required peripherals are listed in [CTS Verifier audio peripherals](/docs/compatibility/cts/audio-peripherals).\n2. Run the [Support utilites](#support-utilities).\n3. Run the [test section](#test) by tapping **Start**.\n\nAs the test for each test section completes, the **Results** section updates to\nreflect the overall test status.\n\nWhen all required routes are tested, and each test meets the latency criteria\nfor that route as specified in [CDD](/docs/compatibility/14/android-14-cdd#56_audio_latency),\n**PASS** is enabled."]]