如何循环良好无Android的差距? [英] How to loop a sound without gaps in Android?

查看:125
本文介绍了如何循环良好无Android的差距?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我要循环声音没有在Android的差距。 我试图用code mediaplayer.setLooping(真)循环的声音,但总有一种当第一声音过小的停顿和接下来的声音开始。

I want to loop a sound without gaps in android. I tried to use the code mediaplayer.setLooping(true) to loop the sound, but there is always a little pause when the first sound is over and the next sound start.

推荐答案

尝试使用.OGG文件格式在应用程序中的声音文件。我有同样的问题,并做了大量的研究后,我尝试了.OGG格式,它循环无任何Android的差距。

Try using the .ogg file format for the sound files in your application. I had this same issue, and after a lot of research , i tried the .ogg format and it loops without any gaps in android.

有关.OGG格式信息: http://en.wikipedia.org/wiki/.ogg

Info about .ogg format: http://en.wikipedia.org/wiki/.ogg

您可以很容易地转换MP3播放的声音文件,或你有什么,使用流行的开源应用程序的 VLC媒体播放器

You can easily convert your sound file from .mp3 or what have you, to .ogg using the popular open source app VLC Media Player.

这篇关于如何循环良好无Android的差距?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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