繁体   English   中英

sox库调用main,错误是can't open input file `1',为什么?

[英]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);

这是代码详细信息: https://github.com/pxhbug123/SoxLibInAndroid/blob/master/soxcommandlibrary/src/main/sox/src/sox.c#L2908

我不知道为什么?

我用这个方法调用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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM