Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用com.github.zhaolewei:ZlwAudioRecorder:v1.08录音,jar包中有一些流程和性能问题反馈 #61

Open
jaken006 opened this issue Oct 14, 2021 · 0 comments

Comments

@jaken006
Copy link

jaken006 commented Oct 14, 2021

  1. RecordManager.getInstance().init(YCApplication.getInstance(), true);
    调用RecordManager.getInstance().start();后有如下log输出,Context有问题
    W/ContextImpl: Calling a method in the system process without a qualified user: android.app.ContextImpl.startService:1542 android.content.ContextWrapper.startService:494 com.zlw.main.recorderlib.recorder.RecordService.pauseRecording:108 com.zlw.main.recorderlib.RecordManager.pause:78 com.ycsoft.smartbox.record.RecordHolder.finishRecord:228

  2. 调用RecordManager.getInstance().start();录音,然后调用了 RecordManager.getInstance().pause();RecordManager.getInstance().stop(); , 发现仍然有log在不停的输出,根本停不下来。怀疑是某个循环没有关闭。log如下:
    10-13 15:58:03.807 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.817 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.847 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.857 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.877 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.897 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.917 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.937 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.957 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.977 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:03.997 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:04.017 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:04.047 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:04.057 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:04.077 128-6044/? D/vf_audio_hw: in_read:240
    10-13 15:58:04.107 128-6044/? D/vf_audio_hw: in_read:240

  3. 多次调用start,并用pause stop 停止后,小概率会出现音频文件返回的时间错误,时间变得很大。有较大概率会出现同一个录音文件,前半截有声音,后半截没有声音的情况。
    请大神请多指教,谢谢!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant