0

我想在android_config_files.xml更新設備規範,但無法找到如何獲得或產生這些標籤..請幫助如何獲得設備指定android_config_files

<mb520> 
    <support_status val="um2=s;um2i=s;shuttle=s;unipay=s"> </support_status> 
    <directionOutputWave>1</directionOutputWave> 
    <InputFreq>32000</InputFreq> 
    <OutputFreq>24000</OutputFreq> 
    <WaveDirct>1</WaveDirct> 
    <_Low>-10800</_Low> 
    <_High>10800</_High> 
    <__Low>-5400</__Low> 
    <__High>5400</__High> 
    <highThreshold>15000</highThreshold> 
    <lowThreshold>-15000</lowThreshold> 
    <device_Apm_Base>30000</device_Apm_Base> 
    <min>1</min> 
    <max>10</max> 
    <baudRate>4800</baudRate> 
    <preAmbleFactor>10</preAmbleFactor> 
</mb520> 

回答

1

嗯,我想這是讀卡器或類似的東西。我有同樣的問題,我建議你與製造商聯繫並要求提供規格。除此之外,

 AudioManager audioManager = (AudioManager)this.getSystemService(Context.AUDIO_SERVICE); 
     String rate = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_SAMPLE_RATE); 
     String size = audioManager.getProperty(AudioManager.PROPERTY_OUTPUT_FRAMES_PER_BUFFER); 



     Log.d("Buffer Size and sample rate", "Size :" + size + " & Rate: " + rate); 

採樣率和緩衝區大小可以像這樣捕獲。請注意,有效的API> 17 對於其他參數,我無法真正幫助。