当我在 os 5 上录制语音时,我想让 AudioFormatControl 格式化质量,我写了代码
像这样 ,
player = Manager.createPlayer(encoding);
player.realize();
recordControl = (RecordControl) player.getControl(controlType);
AudioFormatControl format = (AudioFormatControl) player
.getControl("AudioFormatControl");
format.setFormat("audio/amr");
format.setParameter(FormatControl.PARAM_VERSION_TYPE,
"MPEG1_layer_3");
format.setParameter(FormatControl.PARAM_BITRATE, kbps);
player.addPlayerListener(recordListener);
但格式为空,请帮助我,如何在黑莓中获取 AudioFormatControl