java合并MP3
来源:互联网 发布:windows 能安装wdcp吗 编辑:程序博客网 时间:2024/05/06 22:58
- File file1 = new File("C:\\mp3\\2.mp3");
- File file2 = new File("C:\\mp3\\3.mp3");
- InputStream is1 = new FileInputStream(file1) ;
- InputStream is2 = new FileInputStream(file2) ;
- OutputStream os = new FileOutputStream("c:/a.mp3") ;
- byte[]b1=new byte[128];
- byte[]b2=new byte[ 128 ];
- int len1 =0;
- int len2 =0;
- int index = 0;
- while((len1 = is1.read(b1))!=-1){
- index++;
- if(index==1){
- continue ;
- }
- os.write(b1, 0, len1 ) ;
- }
- index=0;
- while((len2 = is2.read(b2))!=-1){
- index++ ;
- os.write(b2, 0, len2 ) ;
- }
- is1.close() ;
- is2.close() ;
- os.flush();
- os.close() ;
合并时候两个MP3的格式必须是一样的,如果不是一样的第二个MP3将会无法正常播放。
0 0
- java合并MP3
- java合并MP3
- MP3合并
- 合并MP3
- 用winrar合并MP3
- 如何合并MP3
- MP3切割合并
- 轻松合并&分解mp3文件
- 多种方法轻松合并MP3
- 用winrar合并mp3文件
- android剪切合并MP3音乐
- android剪切合并MP3音乐
- android剪切合并MP3音乐
- 如何使用MP3剪切合并大师剪切MP3文件
- 原来合并mp3文件这么简单!
- 把mp3分成n份之后合并
- I/O流--切割合并mp3文件
- iOS关于MP3音频文件合并和MOV音频文件合并
- String ,StringBuffer,StringBuilder精髓比较
- 互联网公司面试题总结
- C++输出可能栈
- wlan Direct 使用教程
- Implementing Efficient State Machines
- java合并MP3
- Fragment隐藏、显示、替换
- 数据库查询
- 个人学习总结三Java编程基础
- 设置树莓派用pi自动登录
- 利用bootbox.js写二次确认提交(以及数字转为中文数字)
- Genymotion安装apk出现INSTALL_FAILED_CPU_ABI_INCOMPATIBLE解决办法
- c语言优先级口诀
- android studio 更新 Gradle错误解决方法