Ambiera Forum

Discussions, Help and Support.

Ambiera Forum > irrKlang
Delay on first playback (preload enabled)

Gurra
Guest
Quote
2009-07-06 00:13:06

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?


Gurra
Guest
Quote
2009-07-06 13:16:53

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 !


Kobzol
Guest
Quote
2015-10-20 00:34:46

I have the same problem, where did you put the zero?


erik
Registered User
Quote
2015-10-21 12:17:42

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.


Create reply:


Posted by: (you are not logged in)


Enter the missing letter in: "In?ernational" (you are not logged in)


Text:

 

  

Possible Codes


Feature Code
Link [url] www.example.com [/url]
Bold [b]bold text[/b]
Image [img]http://www.example.com/image.jpg[/img]
Quote [quote]quoted text[/quote]
Code [code]source code[/code]

Emoticons


   






Copyright© Ambiera e.U. all rights reserved.
Privacy Policy | Terms and Conditions | Imprint | Contact