Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: How many can be sounds in game?  (Read 3777 times)

0 Members and 1 Guest are viewing this topic.

Uncle_Mike

  • Newbie
  • *
  • Posts: 19
    • View Profile
How many can be sounds in game?
« on: February 20, 2012, 02:50:21 pm »
Hi guys.
I have many objects in my game, and to every object I attach 2 or 3 their sounds.
But not all objects  play their sounds...

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
How many can be sounds in game?
« Reply #1 on: February 20, 2012, 02:57:45 pm »
There is an internal limit (set by OpenAL) of sound instances that can live at the same time. I don't remember the exact amount, should be 512 or 1024.
Laurent Gomila - SFML developer

Uncle_Mike

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How many can be sounds in game?
« Reply #2 on: April 07, 2012, 10:10:13 am »
I found a solution.
If I use OpenAL32.dll from openal.org (file size 107KB), -  maximum sounds quantity in my game is near only 20!!!
 But  if I use OpenAL32.dll from SFML (file size 205KB), -  everething is OK! Maximum sounds quantity is very large!!!
Why??? :)))

N1ghtly

  • Jr. Member
  • **
  • Posts: 96
    • View Profile
Re: How many can be sounds in game?
« Reply #3 on: April 09, 2012, 03:05:49 pm »
Where would you even need 20+ sounds simultaneously?

Uncle_Mike

  • Newbie
  • *
  • Posts: 19
    • View Profile
Re: How many can be sounds in game?
« Reply #4 on: April 10, 2012, 04:45:48 pm »
Where would you even need 20+ sounds simultaneously?
I write a great space MMORPG "Cosmagers online", dear friend! ;)