打两个MP3歌曲在同一时间 [英] Play two mp3 song at the same time

查看:122
本文介绍了打两个MP3歌曲在同一时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要同时打两场歌曲(MP3)(一个是卡拉OK的文件,一个是由用户记录音频)。我可以使用MediaPlayer的做到这一点?如果是这样,是这样吗,如果我的MediaPlayer创建和的setDataSource 2对象两种文件并播放?

I want to play two song (mp3) at the same time (one is karaoke file and one is the record audio by user). Can I use the MediaPlayer to do this? If so, is that right if I create 2 object of MediaPlayer and setDataSource for two file and play it?

谢谢!

推荐答案

是的,据我来说这是一切优秀使用两个MediaPlayer的对象,并做到这一点,在我做的经验,同样一直没有对声音播放或任何任何问题内存问题,该工作般的魅力。

Yes, According to me that's all fine using two MediaPlayer objects and do that, In my experience of doing same there has been no any problems for sound play or any memory issues,that work like charm.

这篇关于打两个MP3歌曲在同一时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆