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