I have an app that works great on the N95 and N82, but is extremely sluggish on others, such as N96, N81, E73, N85, N86. Once diff is the 95/82 have graphics hw accel, but graphics is not the issue. I have a number of short mp3 files that need to be played based on certain events. Each event triggers a specific sound, but if no events happen, the current sound must loop. Two players for each sound were instantiated and initialized at startup to eliminate startup time the first time a sound is played.
Using 2 players gets the looping ok on n95/n82 (a timer alternates starting one or the other near the end of the sound's cycle), with slight 'blip' on sound overlaps. Events can change very quickly from one to the next and the sounds start playing accordingly, pretty close to when the events happen. However, on the other phones, there is a distinct 1/4 to 1/2 sec or so pause in-between loops and sometimes only play a sound once without looping. Likewise, the same processing pause dramatically affects playing sounds for each succeeding event that comes in and the sound simply cannot keep up, making this function on these other phones absolutely useless.
The N95 and N81 have canvas double-buffering enabled, and I've also tried not doing any screen updates during this time, but there was no difference in sound performance (or lack of).
Can anyone provide an idea as to why the other phones have such a sluggish performance for this compared to the N95 and N82?

Reply With Quote

