Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Hi, I just started working on a c++ project which requires audio playback with good timings. I don't really reaquire much else than volume control and precise playback timing. I implemented Irrklang (using v 1.13) but I am running into a problem. On Windows Xp 32bit here using irrklang DirectSound (same result with 3 and 8). The first time I play back a sound it comes with a BIG delay (300-400 ms). After that it starts quite fast. Then if I wait a few seconds again it will start loading slow again. I dont know why... I preload the ISound* using myvar = addSoundSourceFromFile(name, ESM_NO_STREAMING, true), yet when I do play2D(myvar) it comes with a delay, and I have no clue why ::.. =/ Do you have any idea? |
||||
|
Never mind, I accidently put in a 0 in the wrong place ;). Took me hours to figure this out ! Thanks for a great and user friendly audio engine ! |
||||
|
I have the same problem, where did you put the zero? |
||||
|
Maybe your file is too big and irrklang decides it has to stream it anyway and cannot preload it. There is a function to override this setting. You could try to set ISoundSource::setForcedStreamingThreshold() to -1. |
|