stopping sound problem

faraklit

08-04-2008 23:39:19

hi,

I have two or more sounds playing simultaneously.
Sometimes when I load a resource from disk ,which slows down application for a moment, the sounds stop playing.

Is there anything to fix this?

thanks in advance.

pra

09-04-2008 11:32:58

are you streaming the sounds?
i encountered this with streaming sounds. it seems they actually stop, so that isStopped() returns true, too...
i do not have a solution, i decided not to use streaming at this particular point

faraklit

09-04-2008 13:39:31

yes I am streaming the sounds, otherwise the ogre side freezes 1-2 secs when I want to load and play a sound file.

pra

10-04-2008 13:43:01

yes I am streaming the sounds, otherwise the ogre side freezes 1-2 secs when I want to load and play a sound file.
is this a long sound, like music?
I decided to preload my music files before usage, by calling snd->play(); snd->pause();
I guess this is everything but efficient, but i'll keep it that way until i've found a working solution...

faraklit

11-04-2008 13:51:12

I tried that with ogg files not using streaming and preloading by start and pause but it does not seem to preload to the memory (maybe some bug in my code)
however it works just fine with wav files but not with ogg files. for the time being i will stick to large wav files.