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

the log is too much,how to close? #9

Open
wubolinha opened this issue Jul 7, 2017 · 2 comments
Open

the log is too much,how to close? #9

wubolinha opened this issue Jul 7, 2017 · 2 comments

Comments

@wubolinha
Copy link

07-07 19:33:45.595 32278-32462/com.bolin.pcmconvert E/libOpusTool: argc is :3
07-07 19:33:45.595 32278-32462/com.bolin.pcmconvert E/libOpusTool: argv0 isopus:
07-07 19:33:45.595 32278-32462/com.bolin.pcmconvert E/libOpusTool: argv1 is/storage/emulated/0/Atemp/output_slice_0062.wav:
07-07 19:33:45.595 32278-32462/com.bolin.pcmconvert E/libOpusTool: argv2 is:/storage/emulated/0/Atemp/output_slice_0062.wav.opus
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: Encoding using libopus 1.1
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: (audio)
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: -----------------------------------------------------
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: Input: 44.1kHz 2 channels
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: Output: 2 channels (
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: 2 coupled
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: )
20ms packets, 96kbit/sec VBR
07-07 19:33:45.600 32278-32462/com.bolin.pcmconvert E/libOpusTool: Preskip: 356
07-07 19:33:45.603 32278-32462/com.bolin.pcmconvert E/libOpusTool: [|] 00:00:00.02 2e+04x realtime, 91.5kbit/s
07-07 19:33:45.604 32278-32462/com.bolin.pcmconvert E/libOpusTool:
07-07 19:33:45.604 32278-32462/com.bolin.pcmconvert E/libOpusTool:

@louisyonge
Copy link
Owner

很抱歉,当时设计的时候没有考虑这个。
对于release版本,可以考虑配置一下混淆(proguard-rules.pro),把所有的log都关闭

@louisyonge
Copy link
Owner

louisyonge commented Jul 8, 2017

对于c语言级别的log,需要重写编译动态链接库。修改文件“opus_android/opuslib/src/main/jni/include/log.h”,把里面关于安卓输出的宏修改掉,重新编译即可。

Sorry, there is no such a switch to turn off logs, but you can reach the goal by some code modifications.

  1. For Java logs, configuring proguard rules could turn off all the logs.
  2. For logs from C&C++ level, change the MACRO in the file "opus_android/opuslib/src/main/jni/include/log.h", and then recompile the native library. "log.h" redirects all the printfs and perrors to Android, in order to debug.

Repository owner deleted a comment Feb 2, 2024
Repository owner deleted a comment from SASECOMPANY Mar 7, 2024
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

2 participants