User Tag List

Page 1 of 5 1 2 3 ... LastLast
Results 1 to 10 of 48

Thread: Beta 16: Problems with sound playback

  1. #1
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Beta 16: Problems with sound playback

    I have had consistent problems with sound playback using the iPhone runtime. With every sound I have tried in all of wav, mp3 and ogg, I experience lag when the sound first plays. Wavs have the largest frame drop. I have also tried different bitrates and sample rates with no difference.

    I have attached a simple application which plays a sound when you click a button. You can also see that the frame rate drops whenever this button clicks.

    The sound is a 16-bit Mono 128kbps mp3 at 44100hz

    Every time I click the button I get 39-42 FPS.
    Attached files Attached files

  2. #2
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    Didn't test your app, but what I do in those cases is first fire the sound, mark somewhere (with a flag) "Sound fired" and then sync the video in the next loop.

    The way to do the latter is to place all actions that should happen when the sound is played, before the condition that triggers the sound. And to be sure that those actions happen when the sound has been fired I add a "Is Flag X on?".

    Hope this helsp in your case.

  3. #3
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    Netninja, Yves explained that the OGG is not supported, and I'm using MP3 for the soundtrack and. wav files for the rest, I've also noticed that sometimes a sound associated with a touch of an object does not sound the first and second if so, the bug is random, I think our friends should review very well Clickteam this section, it is crucial.
    I guess you are doing.

  4. #4
    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)

    Re: Beta 16: Problems with sound playback

    Yes, this is a problem I have noticed too. I guess that the sound engine of iOS needs some initialisation before working.
    I suggest that you play a dummy sound in the title page of your game, like that the delay will not be noticed.

  5. #5
    Clicker Fusion 2.5 DeveloperAndroid Export ModuleHTML5 Export ModuleiOS Export ModuleMac Export ModuleUniversal Windows Platform Export ModuleSWF Export Module
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    Koji_Kabuto's Avatar
    Join Date
    Jul 2006
    Location
    Venezuela
    Posts
    2,847
    Mentioned
    2 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    Thanks Francois and this time and we are still beta, so we have time, I think it's better IOS Exporter debug as possible before launching applications to the App Store, at least not that they are made with MMF.

    I feel that we are already light years from Gamesalad and I think that Clickteam have a great product under his arm.

  6. #6
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    Thanks for the feedback guys, but I don't think anyone really noticed the severity of this problem.

    Whenever I play a sound effect, my game lags. This isn't the first time I play the sound... this is every time a sound is played. A dummy sound won't help in this situation.

    So if you had a game where you wanted to play a sound every time your ship shot a bullet, then it wouldn't be playable. The frame rate drop is very noticeable and I don't think I'm doing anything wrong with my sounds - check the example - the sound is a very simple one.

    I don't see how I can release a game where it has such a major performance issue.

  7. #7
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export Module

    Join Date
    Jan 2009
    Posts
    1,052
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    As I said. I used to have that problem and fix it with the workaround I posted earlier And beleive me when I say that my ship shoots lots of bullets.

  8. #8
    Clicker Fusion 2.5 MacFusion 2.5 DeveloperFusion 2.5+ DLCAndroid Export ModuleiOS Export ModuleSWF Export ModuleInstall Creator Pro
    Fusion 2.5 (Steam)Fusion 2.5 Developer (Steam)Android Export Module (Steam)HTML5 Export Module (Steam)iOS Export Module (Steam)Universal Windows Platform Export Module (Steam)
    UrbanMonk's Avatar
    Join Date
    May 2008
    Location
    Southern U.S.A.
    Posts
    847
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    If i remember correctly mp3 uses a separate engine than wav files, they are better suited for music and not sound effects.

    Use a dummy blank wav to get things started, then the wav lag stops.

  9. #9
    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)

    Re: Beta 16: Problems with sound playback

    The lag in the gampe depends on the sound, its frequency, it length. We have not yet been able to pinpoint which frequency or sound, but safe to say that sounds with lower frequencies will play faster.
    To play sounds, I am using the method recommended by Apple. I have two solutions to prepare the sound player for playing a sound, either do it before the sound is played, or after, when the sound has just stopped. I could do the latter, but there will be lags in the game when the sound stop, which would be the same after all.

  10. #10
    Clicker Multimedia Fusion 2 DeveloperiOS Export ModuleSWF Export ModuleUnicode Add-on

    Join Date
    Jun 2006
    Location
    Australia
    Posts
    988
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Beta 16: Problems with sound playback

    Francois - so is there a specific sound format that plays better than others? Could you provide some guidelines as to what frequency we should sample the sound at, and other settings? I have not been able to produce a sound that doesn't lag, but perhaps I am using the wrong settings. In my example my sounds are extremely short already.

Page 1 of 5 1 2 3 ... LastLast

Similar Threads

  1. Sound Problems
    By Kisguri in forum iOS Export Module Version 2.0
    Replies: 2
    Last Post: 17th April 2012, 02:58 PM
  2. Problems with Active Direct Show video playback in display mode DirectX9
    By Gustav in forum Multimedia Fusion 2 - Technical Support
    Replies: 2
    Last Post: 11th December 2011, 04:06 PM
  3. iOS sound playback latency
    By josecastelo in forum iOS Export Module Version 2.0
    Replies: 3
    Last Post: 23rd August 2011, 11:28 PM
  4. Sound problems
    By Rabagast in forum Multimedia Fusion 2 - Technical Support
    Replies: 3
    Last Post: 11th March 2008, 02:23 PM
  5. Sound playback stops
    By Cybermind in forum The Games Factory 2 - Technical Support
    Replies: 24
    Last Post: 29th August 2007, 06:53 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
  •