LIBGDX:我怎么知道声音何时播放完毕? [英] LIBGDX: How can i tell when a sound has finished playing?

查看:87
本文介绍了LIBGDX:我怎么知道声音何时播放完毕?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Sound API似乎缺少表明声音已播放完毕的功能.还有其他方法可以确定声音是否完成了吗?

The Sound API seems to be missing a function to indicate that a sound is finished playing. Is there some other way of finding out if the sound is done?

推荐答案

据我所知,OpenAL和Android的基础声音后端甚至都没有在内部跟踪信息,尽管Music根据文档.

Not without submitting a patch to libgdx as far as I know the underlying Sound Backends for both OpenAL and Android don't even track the information internally, though the Music API has an isPlaying() function and getPosition() function as per the documentation.

这篇关于LIBGDX:我怎么知道声音何时播放完毕?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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