Android 2.2 (API level 8) introduced two convenience methods, autoPaus dịch - Android 2.2 (API level 8) introduced two convenience methods, autoPaus Việt làm thế nào để nói

Android 2.2 (API level 8) introduce

Android 2.2 (API level 8) introduced two convenience methods, autoPause and autoResume, that will pause and resume, respectively, all the active audio streams.
If you are creating a game, or other application that should play audio only when visible, it’s good practice to pause all the active audio unless your application is active and visible, and restart it only after the user has begun interacting with it again — typically by touching the screen.
When you no longer require the audio collected within a Sound Pool, call its release method to free the resources:
soundPool.release();
USING AUDIO EFFECTS
Android 2.3 (API level 9) introduced a suite of audio effects that can be applied to the audio output of any Audio Track or Media Player. After applying the effects, you can modify the effect settings and parameters to alter how they affect the audio being output within your application.
As of Android 4.0.3, the following five AudioEffect subclasses are available:
^ Equalizer — Lets you modify the frequency response of your audio output. Use the setBandLevel method to assign a gain value to a specific frequency band.
^ virtualizer — Makes audio appear to be more three-dimensional. Its implementation will vary depending on the configuration of the output device. Use the setStrength method to set the strength of the effect between 0 and 1000.
^ BassBoost — Boosts the low frequencies of your audio output. Use the setStrength method to set the strength of the effect between 0 and 1000.
^ PresetReverb — Allows you to specify one of a number of reverb presets, designed to make your audio sound as though it were being played in one of the specified room types. Use the setPreset method to apply reverb equivalent to a medium or large hall, or small, medium, or large room using a PresetReverb.PRESET_* constant.
^ EnvironmentalReverb — Like the Preset Reverb, the Environmental Reverb allows you to control the audio output to simulate the effect of a different environment. Unlike the Preset Reverb, this subclass lets you specify each of the reverb parameters yourself to create a cus¬tom effect.
To apply one of these effects to your Audio Track or Media Player, find its unique audio session ID using the getAudioSessionId method on either object. Use the value to construct a new instance of the Audio Effect subclass you want to use, modify its settings as desired, and enable it, as shown in Listing 15-22.


0/5000
Từ: -
Sang: -
Kết quả (Việt) 1: [Sao chép]
Sao chép!
Android 2.2 (API level 8) introduced two convenience methods, autoPause and autoResume, that will pause and resume, respectively, all the active audio streams.If you are creating a game, or other application that should play audio only when visible, it’s good practice to pause all the active audio unless your application is active and visible, and restart it only after the user has begun interacting with it again — typically by touching the screen. When you no longer require the audio collected within a Sound Pool, call its release method to free the resources:soundPool.release();USING AUDIO EFFECTSAndroid 2.3 (API level 9) introduced a suite of audio effects that can be applied to the audio output of any Audio Track or Media Player. After applying the effects, you can modify the effect settings and parameters to alter how they affect the audio being output within your application.As of Android 4.0.3, the following five AudioEffect subclasses are available:^ Equalizer — Lets you modify the frequency response of your audio output. Use the setBandLevel method to assign a gain value to a specific frequency band.^ virtualizer — Makes audio appear to be more three-dimensional. Its implementation will vary depending on the configuration of the output device. Use the setStrength method to set the strength of the effect between 0 and 1000.^ BassBoost — Boosts the low frequencies of your audio output. Use the setStrength method to set the strength of the effect between 0 and 1000.^ PresetReverb — Allows you to specify one of a number of reverb presets, designed to make your audio sound as though it were being played in one of the specified room types. Use the setPreset method to apply reverb equivalent to a medium or large hall, or small, medium, or large room using a PresetReverb.PRESET_* constant.^ EnvironmentalReverb — Like the Preset Reverb, the Environmental Reverb allows you to control the audio output to simulate the effect of a different environment. Unlike the Preset Reverb, this subclass lets you specify each of the reverb parameters yourself to create a cus¬tom effect.To apply one of these effects to your Audio Track or Media Player, find its unique audio session ID using the getAudioSessionId method on either object. Use the value to construct a new instance of the Audio Effect subclass you want to use, modify its settings as desired, and enable it, as shown in Listing 15-22.
đang được dịch, vui lòng đợi..
Kết quả (Việt) 2:[Sao chép]
Sao chép!
Android 2.2 (API cấp 8) giới thiệu hai phương pháp tiện lợi, autoPause và autoResume, sẽ tạm dừng và tiếp tục, tương ứng, tất cả các dòng suối âm thanh hoạt động.
Nếu bạn đang tạo ra một trò chơi, hoặc các ứng dụng khác mà nên chơi âm thanh chỉ khi nhìn thấy, đó là tốt thực hành để tạm dừng tất cả các âm thanh hoạt động trừ khi ứng dụng của bạn đang hoạt động và có thể nhìn thấy, và khởi động lại sau khi người dùng đã bắt đầu tương tác với nó một lần nữa -. thường bằng cách chạm vào màn hình
Khi bạn không còn yêu cầu âm thanh thu được trong một hồ bơi âm thanh, gọi nó phương pháp phát hành để giải phóng các nguồn lực:
soundPool.release ();
SỬ dỤNG aUDIO tÁC
Android 2.3 (API cấp 9) giới thiệu một loạt các hiệu ứng âm thanh có thể được áp dụng cho đầu ra âm thanh của bất kỳ audio Track hoặc Media Player. Sau khi áp dụng các hiệu ứng, bạn có thể sửa đổi các thiết lập hiệu ứng và các thông số để thay đổi cách thức chúng ảnh hưởng đến âm thanh đang được đầu ra trong ứng dụng của bạn.
Như của Android 4.0.3, năm lớp con AudioEffect sau:
^ Equalizer - Cho phép bạn thay đổi tần số đáp ứng ngõ ra âm thanh của bạn. Sử dụng các phương pháp setBandLevel để gán một giá trị tăng tới một băng tần số cụ thể.
^ Virtualizer - Làm cho âm thanh xuất hiện được nhiều hơn ba chiều. Thực hiện của nó sẽ thay đổi tùy thuộc vào cấu hình của các thiết bị đầu ra. Sử dụng các phương pháp setStrength để thiết lập sức mạnh của hiệu ứng giữa 0 và 1000.
^ BassBoost - Tăng tần số thấp của âm thanh đầu ra của bạn. Sử dụng các phương pháp setStrength để thiết lập sức mạnh của hiệu ứng giữa 0 và 1000.
^ PresetReverb - Cho phép bạn chỉ định một trong số các mẫu thiết reverb, được thiết kế để làm cho âm thanh âm thanh của bạn như thể nó đã được chơi trong một trong các loại phòng khác nhau quy định . Sử dụng các phương pháp setPreset áp dụng reverb tương đương với trung bình hoặc hội trường lớn, hoặc nhỏ, trung bình, hoặc phòng lớn sử dụng một PresetReverb.PRESET_ * liên tục.
^ EnvironmentalReverb - Giống như các Preset Reverb, các Reverb môi trường cho phép bạn kiểm soát đầu ra âm thanh mô phỏng hiệu ứng của một môi trường khác nhau. Không giống như các Preset Reverb, phân lớp này cho phép bạn chỉ định mỗi reverb thông số chính bạn để tạo ra một hiệu ứng cus¬tom.
Để áp dụng một trong các hiệu ứng cho Audio Track của bạn hoặc Media Player, tìm ID phiên âm thanh độc đáo của nó bằng cách sử dụng phương pháp getAudioSessionId hai vật. Sử dụng giá trị để xây dựng một thể hiện mới của lớp con Hiệu ứng âm thanh bạn muốn sử dụng, sửa đổi các thiết lập của nó như mong muốn, và kích hoạt nó, như thể hiện trong Liệt kê 15-22.


đang được dịch, vui lòng đợi..
 
Các ngôn ngữ khác
Hỗ trợ công cụ dịch thuật: Albania, Amharic, Anh, Armenia, Azerbaijan, Ba Lan, Ba Tư, Bantu, Basque, Belarus, Bengal, Bosnia, Bulgaria, Bồ Đào Nha, Catalan, Cebuano, Chichewa, Corsi, Creole (Haiti), Croatia, Do Thái, Estonia, Filipino, Frisia, Gael Scotland, Galicia, George, Gujarat, Hausa, Hawaii, Hindi, Hmong, Hungary, Hy Lạp, Hà Lan, Hà Lan (Nam Phi), Hàn, Iceland, Igbo, Ireland, Java, Kannada, Kazakh, Khmer, Kinyarwanda, Klingon, Kurd, Kyrgyz, Latinh, Latvia, Litva, Luxembourg, Lào, Macedonia, Malagasy, Malayalam, Malta, Maori, Marathi, Myanmar, Mã Lai, Mông Cổ, Na Uy, Nepal, Nga, Nhật, Odia (Oriya), Pashto, Pháp, Phát hiện ngôn ngữ, Phần Lan, Punjab, Quốc tế ngữ, Rumani, Samoa, Serbia, Sesotho, Shona, Sindhi, Sinhala, Slovak, Slovenia, Somali, Sunda, Swahili, Séc, Tajik, Tamil, Tatar, Telugu, Thái, Thổ Nhĩ Kỳ, Thụy Điển, Tiếng Indonesia, Tiếng Ý, Trung, Trung (Phồn thể), Turkmen, Tây Ban Nha, Ukraina, Urdu, Uyghur, Uzbek, Việt, Xứ Wales, Yiddish, Yoruba, Zulu, Đan Mạch, Đức, Ả Rập, dịch ngôn ngữ.

Copyright ©2025 I Love Translation. All reserved.

E-mail: