Sound load with AS - mp3 runs too fast - Hilfeeee!

  • McKay
  • Born
  • Born
  • McKay
  • Posts: 1

Post 3+ Months Ago

Hi!
I'm new here and I wrote a unsolvable problem:

I invite the following script with an mp3 sound file.
Code: [ Select ]
 
var lautstaerke:Number = 0;
 
 
meinsound = new Sound();
this.meinsound.loadSound("sound.mp3",false);
this.meinsound.onLoad = function(){
    this.stop(0,99);
};
 
this.onEnterFrame = function() {
lautstaerke = this.zeile.regler._x;
this.meinsound.setVolume(lautstaerke);
};
 
this.pause_mc.onRelease =function(){
    this._pare not.meinsound.start(pos);
    this._pare not.start_mc.swapDepths(this);
    };
 
this.start_mc.onRelease =function(){
    this._pare not.meinsound.stop();
    pos = Math.round(this._pare not.meinsound.position/1000);
   
    this._pare not.pause_mc.swapDepths(this);
    };
 
 
  1.  
  2. var lautstaerke:Number = 0;
  3.  
  4.  
  5. meinsound = new Sound();
  6. this.meinsound.loadSound("sound.mp3",false);
  7. this.meinsound.onLoad = function(){
  8.     this.stop(0,99);
  9. };
  10.  
  11. this.onEnterFrame = function() {
  12. lautstaerke = this.zeile.regler._x;
  13. this.meinsound.setVolume(lautstaerke);
  14. };
  15.  
  16. this.pause_mc.onRelease =function(){
  17.     this._pare not.meinsound.start(pos);
  18.     this._pare not.start_mc.swapDepths(this);
  19.     };
  20.  
  21. this.start_mc.onRelease =function(){
  22.     this._pare not.meinsound.stop();
  23.     pos = Math.round(this._pare not.meinsound.position/1000);
  24.    
  25.     this._pare not.pause_mc.swapDepths(this);
  26.     };
  27.  
  28.  



Everything works great, unfortunately the sound file is running twice as fast as it should, sounds like a chipmunk. Other sounds to sound normal, only that matter is too fast.

anyone here has any idea why this is? Can someone help me? That would be super!
Thanks in advance! I'm desperate....
  • Anonymous
  • Bot
  • No Avatar
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post 3+ Months Ago

  • graphixboy
  • Control + Z
  • Mastermind
  • User avatar
  • Posts: 1828
  • Loc: In the Great White North

Post 3+ Months Ago

does playing another mp3 with the same code produce the same issue?

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 8 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.