Sign in to follow this  
DrunkenBrit

FMOD help

Recommended Posts

Hi, im using FMOD for my game for all sounds, the problem is that the sound wont actually play unless there is a suspend for a key or its inside of a loop of some sort, it just wont play any sounds on events inside my game loop, the only way around it is i.e. bool played = false; do{ play sound etc played = true; while(!played) The only probem with the above example is it halts the game loop to play the sound obnviously. It doesnt work inside an if like if(bulletFired)play sound etc Any help? Thanks guys/girls

Share this post


Link to post
Share on other sites
Quote:
Original post by DrunkenBrit
Hi, im using FMOD for my game for all sounds, the problem is that the sound wont actually play unless there is a suspend for a key or its inside of a loop of some sort, it just wont play any sounds on events inside my game loop, the only way around it is i.e.

bool played = false;

do{

play sound etc

played = true;

while(!played)

The only probem with the above example is it halts the game loop to play the sound obnviously.

It doesnt work inside an if like if(bulletFired)play sound etc

Any help? Thanks guys/girls


i think i've got the same problem with fmod...
i still did not find how to play a sound without blocking the game main loop...

[Edited by - jolyqr on April 13, 2006 2:02:04 PM]

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this