On Thu, May 7, 2009 at 10:33 PM, Sudha wrote:
>
> I have nearly 28 sound files in which most of them have the duration
> less than a second (i.e in milliseconds), to reduce the delay in
> creating the player everytime, i created a player for each sound file
> i.e 28 MediaPlayers and each sound fi
On Fri, May 8, 2009 at 2:31 AM, Sudha wrote:
>
> By the way what are these states 1, 2, 128 etc.
1 is 'idle'
2 is 'initialized'
128 is 'playback complete'
(see mediaplayer.h)
So let's take another look at the error messages you were seeing:
1- E/MediaPlayer( 2173): stop called in state 1
By the way what are these states 1, 2, 128 etc.
Can't android people name it when raising exceptions so that
developers could know better what is the cause of exception?
I am getting full irritated because of these sound issues particularly
with the MediaPlayer and its states in android
I have nearly 28 sound files in which most of them have the duration
less than a second (i.e in milliseconds), to reduce the delay in
creating the player everytime, i created a player for each sound file
i.e 28 MediaPlayers and each sound file plays on its own player and
all the sounds are managed
Based on the code you posted, the "stop called in state 2" is because you
call stop() in your OnCompletionListener, which isn't necessary (it's
already stopped at that point).
I don't see how the other problems could happen with the code you posted,
unless you have multiple threads accidentally usi
5 matches
Mail list logo