User Tag List

Page 2 of 2 FirstFirst 1 2
Results 11 to 17 of 17

Thread: audio sync

  1. #11
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Lightbulb

    Here it is to make it absolutely clear, i extracted the converted .mp3 from the mmf exported .swf using a ripping program and opened it up together with the original .wav in audacity.
    original_vs_conversion.jpg

    However, it doesn't matter if i use mmf to convert to mp3 or if i do it manually in audacity, whenever i convert an audio file to .mp3, there is a 0.05 second delay added to the beginning. I thought this is just how mp3 compression is done and something everyone and every flash game had to live with. But if there is any software or mp3 encoder that doesn't add this delay, i would really like to know.

  2. #12
    Clicker Fusion 2.5 Developer

    Join Date
    Jan 2013
    Posts
    40
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    i wonder if mmf2 is encoding files that are already mp3s doubling up the delay at the start. the mp3 format itself creates a tiny little delay and the swf export is possibly increasing it moreso.

  3. #13
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SoftWarewolf View Post
    Here it is to make it absolutely clear, i extracted the converted .mp3 from the mmf exported .swf using a ripping program and opened it up together with the original .wav in audacity.
    original_vs_conversion.jpg

    However, it doesn't matter if i use mmf to convert to mp3 or if i do it manually in audacity, whenever i convert an audio file to .mp3, there is a 0.05 second delay added to the beginning. I thought this is just how mp3 compression is done and something everyone and every flash game had to live with. But if there is any software or mp3 encoder that doesn't add this delay, i would really like to know.
    I did a test with Audacity and Cakewalk Sonar Producers. Audacity adds the 0.05 delay for some reason when you export then reopen in Audacity,.but Sonar doesn't. If I cut the silence off of any sound so the sound starts at zero in sonar and export to Wav or Mp3 then import it into Audacity it's fine and starts without delay, BUT if you export the file from Audacity and then open it again in Audacity it adds the delay automatically. That is strange. I would search to see if there is a setting in Audacity that lets you export without this delay.
    Picture 1 is in Sonar starting at zero.
    Picture 2 is the exported Sonar file opened in Audacity (shows no delay)
    Picture 3 is the file saved from Sonar in Audacity and then reopened in Audacity. (Delay is added)
    Images attachées Images attachées

  4. #14
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleSWF Export Module
    happygreenfrog's Avatar
    Join Date
    May 2011
    Location
    I.L.T.D.O.I.R (I.L.T.D.O.I.R's Location: The Dimension Of Infinite Recursion)
    Posts
    4,307
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by KLiK-iT View Post
    I did a test with Audacity and Cakewalk Sonar Producers. Audacity adds the 0.05 delay for some reason when you export then reopen in Audacity,.but Sonar doesn't. If I cut the silence off of any sound so the sound starts at zero in sonar and export to Wav or Mp3 then import it into Audacity it's fine and starts without delay, BUT if you export the file from Audacity and then open it again in Audacity it adds the delay automatically. That is strange. I would search to see if there is a setting in Audacity that lets you export without this delay.
    Picture 1 is in Sonar starting at zero.
    Picture 2 is the exported Sonar file opened in Audacity (shows no delay)
    Picture 3 is the file saved from Sonar in Audacity and then reopened in Audacity. (Delay is added)
    I think that Audacity uses the same DLL to convert files into MP3 files as MMF2, which would explain why they both have the same issue. However, I don't know about Sonar, so it might also use the same DLL file, though I doubt it.

  5. #15
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export ModuleXNA Export ModuleInstall Creator Pro
    SoftWarewolf's Avatar
    Join Date
    Jul 2006
    Location
    Norway
    Posts
    941
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)
    So if you save the .mp3 in sonar it has absolutely no delay when you open that .mp3 in audacity? audacity doesn't add delay when you open the file, but when it's saved. So audacity and mmf both add 50ms delay when they save .mp3, and it can stack up, getting really noticable at 100ms or 150ms. If you just use .wav files in mmf you get away with only 50ms which is alright, but i would really like to completely get rid of it if it's possible. Sonar is a bit overkill for such a small operation. But if i do find something that makes delay-free .mp3, which settings should i put in mmf to make sure it uses the original instead of re-converting? It would also make looping music seemless.
    One way to easily solve it permanently would be to have mmf flash runtime start playing sounds at 50ms, ignoring the added gap. Then everyone could just use .wav in development and it would work perfectly.

  6. #16
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module
    Francois's Avatar
    Join Date
    Jul 2006
    Location
    Montpellier, France
    Posts
    6,920
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Please try to change the sampling frequency if the sounds are MP3.
    If they are not, change the conversion frequency in the application properties. I am quite sure this will solve the problem.

  7. #17
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleSWF Export Module
    KLiK-iT's Avatar
    Join Date
    Sep 2011
    Location
    New Jersey
    Posts
    2,852
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by SoftWarewolf View Post
    So if you save the .mp3 in sonar it has absolutely no delay when you open that .mp3 in audacity? audacity doesn't add delay when you open the file, but when it's saved. So audacity and mmf both add 50ms delay when they save .mp3, and it can stack up, getting really noticable at 100ms or 150ms. If you just use .wav files in mmf you get away with only 50ms which is alright, but i would really like to completely get rid of it if it's possible. Sonar is a bit overkill for such a small operation. But if i do find something that makes delay-free .mp3, which settings should i put in mmf to make sure it uses the original instead of re-converting? It would also make looping music seemless.
    One way to easily solve it permanently would be to have mmf flash runtime start playing sounds at 50ms, ignoring the added gap. Then everyone could just use .wav in development and it would work perfectly.
    Yes,.that is correct. If you save the file in Sonar and open it in Audacity, there is no delay, BUT if you save that file and reopen it in Audacity the delay is added. I'm a studio engineer and use Sonar Producers to do all my recording and adjusting and 3 other music editing software programs for mastering. I have upgraded to SONAR X2 Producer that I haven't even got to as of yet. I've been using Calkewalk since they introduced it. Another good editor is WaveLab and is mush less expensive. Like I said above, I would look into or contact the makers of Audacity and ask them if that added in delay can be removed. It shouldn't be there! There has to be some type of import setting that can be adjusted.

    EDIT:
    I thought is was due to an older version of Audacity, so I upgraded to the new version and it still does it. Really weird!

Page 2 of 2 FirstFirst 1 2

Similar Threads

  1. Should you always use V-Sync?
    By Shawn in forum Multimedia Fusion 2 - Technical Support
    Replies: 7
    Last Post: 22nd December 2012, 01:06 PM
  2. [Request] Onu Audio add-on: sync'ed up decks
    By Bipolar_Games in forum Extension Development
    Replies: 1
    Last Post: 6th August 2012, 01:55 AM
  3. audio out of sync
    By cfullerNY in forum XNA Export Module Version 2.0
    Replies: 5
    Last Post: 5th June 2012, 05:40 PM
  4. Out of sync audio?
    By brawltaunts22 in forum SWF/Flash Export Module Version 2.0
    Replies: 5
    Last Post: 2nd February 2012, 05:53 PM
  5. V-Sync
    By Cossin in forum Multimedia Fusion 2 - Technical Support
    Replies: 9
    Last Post: 11th August 2008, 05:48 PM

Posting Permissions

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