A Flash Developer Resource Site

Results 1 to 5 of 5

Thread: Poor sound quality

  1. #1
    Senior Member
    Join Date
    Sep 2004
    Posts
    113

    Poor sound quality

    Hi

    I have this PHP MP3 player but for some reason the sound quality is very poor. It's really squeeky, high pitched and really really fast

    Here is my code:

    Code:
    fileid = _level0.id; 
    this.createEmptyMovieClip("myMusic",1000); 
    myMusic = new Sound(myMusicMc); 
    
    lv = new LoadVars(); 
    lv.id = fileid;
    lv.sendAndLoad("file.php", lv, "GET");
    
    lv.onLoad = function(){ 
    myMusic.loadSound("../songuploads/"+lv.file, false);
    loadVariables("file.php?id="+fileid, "_root");
    trace("Ready to play "+lv.file); 
    songstat = "Ready to play "+lv.file;
    };
    Another thing is how can I run it for only 15 seconds?

    Any Ideas

  2. #2
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    Please read the sticky FAQ thread titled "Common Sound Problems - Read before posting", listed at the top of this forum. Your question regarding MP3 playback problems within Flash is already answered in this FAQ.

  3. #3
    Senior Member
    Join Date
    Sep 2004
    Posts
    113
    OK that explains the poor sound qulaity

    but how can I run the sound for 15 seconds from the code above?

  4. #4
    Registered User
    Join Date
    Apr 2001
    Location
    Akron OH, USA
    Posts
    4,841
    you might try polling the sound object position property and when it reaches 15000 then stop playback, delete the sound object to stop the loading of the sound.

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center