Bug 5418 - OpenAL music loop bug since revision 1712
Status: RESOLVED INVALID
Alias: None
Product: ioquake3
Classification: Unclassified
Component: Sound
Version: GIT MASTER
Hardware: PC All
: P3 major
Assignee: Thilo Schulz
QA Contact: ioquake3 bugzilla mailing list
URL:
Depends on:
Blocks:
 
Reported: 2012-01-21 12:42 EST by rambokalle
Modified: 2014-08-29 15:36:14 EDT
2 users (show)

See Also:


Attachments
Patch to implement S_ClearSoundBuffer in OpenAL (1.46 KB, patch)
2014-08-29 15:36 EDT, Donny Springer

Description rambokalle 2012-01-21 12:42:09 EST
There seems to be a bug in ioquake3 using OpenAL.

The music starts to hang after playing a while (typically after a few maps). A ~1 sec. sample is played in an infinite loop which is really annoying, please watch my video: http://www.youtube.com/watch?v=rQAu_YpnP2o

I can trace back this bug exactly to Revision 1712 (http://svn.icculus.org/quake3?view=rev&revision=1712). I reverted the changes made in snd_openal.c, and the music plays like a charm again. Thanks in advance!
Comment 1 Zachary J. Slater 2012-01-21 16:28:34 EST
This bug is awesome. Turns the music into shitty death metal, nice find.
Comment 2 Thilo Schulz 2012-07-01 13:15:23 EDT
I've never had this bug. Have you tried a different version of OpenAL?
Comment 3 Thilo Schulz 2012-07-01 13:15:50 EDT
(In reply to comment #2)
> I've never had this bug. Have you tried a different version of OpenAL?

Also, please give exact steps how to reproduce if there are any.
Comment 4 Zachary J. Slater 2013-02-17 03:33:05 EST
Still reproducible? Going once...
Comment 5 Zachary J. Slater 2013-02-18 00:49:44 EST
Please reopen this bug if it is reproducible in the future.
Comment 6 Donny Springer 2013-11-17 20:57:43 EST
I run into this bug all the time but I don't think it is was introduced in that revision. The bug also exists in the version prior to that.

Not sure how to reproduce it reliably.
Comment 7 Donny Springer 2014-08-29 15:36:14 EDT
Created attachment 3489 [details]
Patch to implement S_ClearSoundBuffer in OpenAL

Patch to implement S_ClearSoundBuffer in OpenAL....fixes this bug with looping sounds and background tracks by clearing sources and regenerating buffers much like the Base sound implementation.