Author Topic: Only 4 sound simultaneously?  (Read 1223 times)

joon

  • Member
  • **
  • Posts: 25
  • Karma: +0/-0
    • View Profile
Only 4 sound simultaneously?
« on: Mon, Dec 5, 2011 »
Hi guys, quick question...

I've noticed that some of my sounds get swallowed/disappear when many are played simultaneously. I'm using FlxG.play(...) and a FlxSound is playing in the background.

Is there anything I'm missing? Is this an AS3 constraint? A Flixel constraint/bug?
Any help is greatly appreciated.


joon

photonstorm

  • Administrator
  • Key Contributor
  • *****
  • Posts: 1502
  • Karma: +1/-0
    • View Profile
    • Photon Storm
Re: Only 4 sound simultaneously?
« Reply #1 on: Mon, Dec 5, 2011 »
There is a definite limit, but it's not set by flixel / Flash, more by your sound hardware. I'm guessing it varies dramatically per system. I've never hit the limit with a number as low as 4 mind you. Could it be that you are triggering lots of over-lapping sounds by mistake? Does sound in other flash games sound ok?
http://www.photonstorm.com



"Tell me and I will forget, show me and I might remember, involve me and I will understand" - Confucius