Android FM single sound and stereo switching sample code _android
Source: Internet
Author: User
The current design is to support the single voice and stereo automatic switching. Switching is required to meet under certain conditions before switching, switching conditions and radio signal strength RSSI, signal stability cqi and so on are related.
At present, there are two interfaces left on the upper level, namely Stereomono and Setstereomono.
Stereomono
Query whether the current radio is in stereo or monomer sound playback.
Setstereomono
Set the current radio to play in stereo or monomer sound.
A point to note: 1. When set to the monomer sound, will certainly switch to the monomer sound, and always keep the monomer sound, will not change with the radio environment changes, unless the upper layer is reset to stereo playback.
2. When set to stereo, the radio automatically determines, based on the current station's environment, the switch to that station, which is related to the environment.
For 6628 if you want to change its toggle Rssi threshold (6620 cannot be changed):
Calculation formula:
Stereo to Mono switch threshold adjustment:
Variable name: blendctrlrssi_th
address:0x314f in coefficient memory.
Th maximum Value: 1024
Th minimum Value: 0
Th default value: 356
Conversion formula: Threshold =-((RSSI (dBm)) *4*16/6 + 384)
The default value for the computed Rssi is -69.375DBM
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service