# Problem with SoundChannel

**URL:** <https://forum.kirupa.com/t/problem-with-soundchannel/278182>\
**Category:** flash\
**Created:** [December 23, 2008, 3:50pm UTC](https://forum.kirupa.com/t/problem-with-soundchannel/278182 "2008-12-23T15:50:57Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![DdLynCh](https://avatars.discourse-cdn.com/v4/letter/d/b4bc9f/32.png) [@DdLynCh](https://forum.kirupa.com/u/DdLynCh)\
**Post date:** [December 23, 2008, 3:50pm UTC](https://forum.kirupa.com/t/problem-with-soundchannel/278182/1 "2008-12-23T15:50:57Z")

</div>

Hi.

I’m writing an Mp3 player and I have a problem with SoundChannel class.

These are my pause and resume functions:

```auto

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…
