MSDK5喊话器的使用
Completed我需要创建一个opusEncoder 来转换我的PCM音频,在初始化时,使用audioRecorderHandler.getAudioConfig()获取到了一个空的配置文件,相同的代码在sample中的kotlia中实现没问题,在java中就获取空,在putdata的时候直接崩溃
audioRecorderHandler = AudioRecordHandler.getInstance();
audioRecorderHandler.init();
opusEncoder = new OpusEncoder();
Log.e(TAG, "opusEncoderInit: "+audioRecorderHandler); //非null
Log.e(TAG, "opusEncoderInit: "+audioRecorderHandler.getAudioConfig()); // null
opusEncoder.config(audioRecorderHandler.getAudioConfig());
Please sign in to leave a comment.
Comments
3 comments