High sampling rate direct-connection audio output method and device based on Android
An audio output device and high sampling rate technology, applied in the field of high sampling rate direct audio output methods and devices, can solve problems such as distortion, and achieve the effect of avoiding distortion
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Image
Examples
Embodiment Construction
[0016] refer to figure 1 As shown, a kind of Android-based high-sampling-rate straight-through audio output method of the present invention includes creating an audiotrack thread corresponding to the audio stream while the audio stream is playing, and the audiotrack thread detects whether the audio stream supports high-sampling-rate straight-through output, If the high sampling rate direct output is not supported, the original mixing resampling method is used for audio stream output. If the high sampling rate direct output is supported, the direct thread is enabled to transmit the data stream of audiotrack and audio hw, and transmit the audio stream Go to audio hw, open the audio driver in audio hw for audio playback.
[0017] Specifically, the audiotrack thread judges whether the audio stream supports direct output by detecting the audio sampling rate of the audio stream and the sampling rate set by default in the audio system of Android. For direct thru output, refer to fi...
PUM
Login to View More Abstract
Description
Claims
Application Information
Login to View More 