[英]sox library call main, and error is can't open input file `1', why?
I use the sox library on android, and i use the command to change the channel of mp3 file我用的是android上的sox库,用命令改变mp3文件的频道
sox /storage/emulated/0/Music/Drivethrough.mp3 -c 1 /storage/emulated/0/Android/data/com.tian.xxx/cache/temp/results.mp3
when i run it, display当我运行它时,显示
can't open input file `1': No such file or directory
and my code is:我的代码是:
int mymain(int argc, char **argv, const char *tempPath);
here is the code detail: https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/sox.c#L2908这是代码详细信息: https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/sox.c#L2908
I do not know why?我不知道为什么?
I use this method to call sox https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/JniNative.c#L265我用这个方法调用sox https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/JniNative.c#L265
solved it.解决了。 just replace the '-c' to '--channels'只需将“-c”替换为“--channels”
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.