Sound stutter problem

Post your questions, suggestions and experiences regarding game design, integration of external libraries here. For irrEdit, irrXML and irrKlang, see the
ambiera forums
Post Reply
duke4e
Posts: 2
Joined: Tue Mar 06, 2007 10:36 pm

Sound stutter problem

Post by duke4e »

Hey

I really like IrrKlang, but it seems that I cant get around one problem. After my song loops for 2nd or 3rd time, the song starts to stutter. Here is how the code looks

Code: Select all

ISoundEngine *engine = createIrrKlangDevice();
ISoundSource *music = engine->addSoundSource("data/music/song01.ogg", ESM_NO_STREAMING);
engine->play2D(music, true);
and here is how the stutter sounds http://duke4e.sitesled.com/wtf.mp3

I'm using GCC on windows.
Please help me!
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

I've heard a few people have problems like this. If you specify the win_mm driver when starting up irrKlang using createIrrKlangDevice(), you won't get that problem. But I'm going to fix this soon, if I am able to reproduce it. You you like to send me the ogg file so I can test it?
duke4e
Posts: 2
Joined: Tue Mar 06, 2007 10:36 pm

Post by duke4e »

here's the song http://duke4e.sitesled.com/song01.ogg

also i must note you that it also happens with other songs and also that problem is not in my audio card since 2 days ago i've bougt new one. so this narrows down the problem on windows itself.

also, thanks for win_mm driver tip, it works!


my cpu spec:
amd sempron 64 2500+
512 ddr
32 bit win xp sp2
creative labs audigy se
vxdev-c++
rocwood
Posts: 2
Joined: Sat Mar 31, 2007 2:17 am

Post by rocwood »

I got the same problem sometimes(even occurs on different oggs).

While in main game loop, background music is playing with irrKlang(Multithread mode), and after music loop serval time, it gets stutter.

It seems that the directsound buffer could not fill quickly enough and miss something. IMHO, maybe it's multithread streaming loading probelm?

Niko would you pleased check these part of codes ? Thanks :D
niko
Site Admin
Posts: 1759
Joined: Fri Aug 22, 2003 4:44 am
Location: Vienna, Austria
Contact:

Post by niko »

Yep, it should have been corrected in irrKlang 0.6. Please tell me if it works or doesn't work for you in that version.
Post Reply