2009/1/6 Bill Gray <[email protected]>:
- Hide quoted text -
> Hi again,
>
> I've figured out almost everything that I need to get this project done, but 
> I am having
> some unexpected difficultly with sound.
>
> I can load an mp3 sound track with...
>
> <code>
> .sound snd "soundtrack.mp3"
>
> .play snd
> </code>
>
> But it won't play all the way through.  It gets chopped off in the middle.
> I can load the same sound using a .wav file, but the .wav is 2.9MB where the 
> mp3 is 350kB!!!
>
> I have tried to play the mp3 through action script with the lines...
>
> <code>
>    .sound snd "soundtrack.mp3"
>
>        .action:
>            acSnd = new Sound(this);
>            acSnd.attachSound("snd");
>            acSnd.start();
>        .end
> </code>
>
> But this suffers from the same cut off issue as the simple way.
>
> Any suggestions would be greatly appreciated.

I noticed the curtailing a while back when I was creating a small
Media Player written
in .sc.   Here are two ways of playing an mp3 sound:

   http://www.nordberg.me.uk/swfc_samples/music

  http://www.nordberg.me.uk/swfc_samples/music2

HTH in some way.

Regards,


Chris.


Reply via email to