سؤال

Is there a limit to how long a sound can be played out for in AndEngine? I'm trying to get my app to play a sound and it's only playing about the first 6 seconds of the tune. Is there a way to change this?

هل كانت مفيدة؟

المحلول

Late answer but for longer sounds you should be using Andengine's Music class, not Sound. Sound is for shorter sound effects I believe.

نصائح أخرى

Are you playing more than five sounds and using the default constructor? If so, perhaps one of the streams is being cut off to play a new sound.

Try initializing SoundManager with more simultaneous streams.

public SoundManager(final int pMaxSimultaneousStreams)
مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top