Hi.
I’m writing an Mp3 player and I have a problem with SoundChannel class.
These are my pause and resume functions:
private var nPausePos:Number;
public function pause()
{
nPausePos = _soundChannel.position;
_soundChannel.stop();
}
public function resume()
{
_soundChannel = _sound.play(nPausePos);
_soundChannel.addEventListener(Event.SOUND_COMPLETE, soundFinished);
}
So… The problem is _soundChannel.position and _sound.length values won’t be equal when the sound finished if I call pause and resume functions..
What’s the thing I’m doing wrong???
Thanks…