Archived

This topic is now archived and is closed to further replies.

Muzlack

sound limits

Recommended Posts

Does directsound have a max number of sound buffers playing? because when I have more than one enemy shooting at the same time with seperate buffers for each, they won''t play. Same thing with explosions.. Sponge Factory --Muzlack

Share this post


Link to post
Share on other sites
Hmm, could this possible be the problem? I make an enemy that is the "default" enemy of that type. This will eliminate loading in the middle of the level. and I have the enemies = that enemy type. for example:
ENEMY ship;
ship=MakeEnemy1(); //this creates the enemy and loads the sounds, etc
ENEMY ships[15];
for(int i=0; i<15; i++) {
ships=ship;
}

of course, this isn''t the real code, but thats what this does for the most part. Could there be a problem that they are counted as the same ship?

Thanks again



Sponge Factory
--Muzlack

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
btw, I just checked and memcpy()ing the structure does not help.

Share this post


Link to post
Share on other sites
Guest Anonymous Poster
Make Multiple SoundBuffer..

if (PLAYING)
OtherSoundBuffer Play..



Share this post


Link to post
Share on other sites