hushaojie04 / libgdx

Automatically exported from code.google.com/p/libgdx
0 stars 0 forks source link

AndroidSound : add priority #1089

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
hello,

pls add the following features.

Sound: support for priority: currently sounds are all played with same 
priority.  Android will stop the oldest one. Generally looping sounds should 
not be stopped. We therefore need to be able to set the sound priority.

Original issue reported on code.google.com by goo...@eprognos.com on 19 Oct 2012 at 9:20

GoogleCodeExporter commented 9 years ago
Added, see Sound#setPriority(long soundId, int priority). The soundId is what's 
returned by Sound#play or Sound#loop. The priority must be >= 0, where 0 is the 
lowest priority. It will currently only have an effect on Android. Consider it 
a hint, not a real setting.

Original comment by badlogicgames on 23 Oct 2012 at 9:14