mirror of
https://github.com/scratchfoundation/scratch-flash.git
synced 2024-12-04 21:21:06 -05:00
Fixed MP3 conversion logic
This commit is contained in:
parent
886e482239
commit
4e0e83b479
1 changed files with 6 additions and 1 deletions
|
@ -653,7 +653,12 @@ spriteFeaturesFilter.visible = false; // disable features filter for now
|
|||
startSoundUpload(snd, origName, uploadComplete);
|
||||
} else { // try to read data as an MP3 file
|
||||
if (app.lp) app.lp.setTitle('Converting mp3...');
|
||||
setTimeout(function():void { MP3Loader.convertToScratchSound(sndName, data, function(s:ScratchSound):void { startSoundUpload(s, origName, uploadComplete); }) }, 1);
|
||||
setTimeout(function():void {
|
||||
MP3Loader.convertToScratchSound(sndName, data, function(s:ScratchSound):void {
|
||||
snd = s;
|
||||
startSoundUpload(s, origName, uploadComplete);
|
||||
});
|
||||
}, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue