sound playback is delaying

All your problems with Audio, Video and Images.

sound playback is delaying

Postby jakob » Mon Feb 23, 2009 2:27 am

I've got a simple application where certain screen taps will result in the playing of an audio file. The problem i'm facing right now is the sound is not playing immediately with the screen press....
jakob
Once Poster
Once Poster
 
Posts: 1
Joined: Mon Feb 23, 2009 2:25 am
Location: concord, nc

Top

Postby Haibane » Wed Feb 25, 2009 9:39 am

I suppose you use the simple mediaplayer class to play the audio file which requires to prepare the file each time before playing. This causes the delay. I hope it will be somehow fixed in the future. Till that time use the soundpool class, it does not need to be prepared, much faster. If you browse the forum here you will find a sample implementation.
User avatar
Haibane
Junior Developer
Junior Developer
 
Posts: 17
Joined: Fri Feb 13, 2009 10:05 am
Location: Klagenfurt, Austria

Top

Return to Multimedia Problems

Who is online

Users browsing this forum: No registered users and 14 guests