From: Carsten W. <ca...@us...> - 2006-11-23 13:44:03
|
Update of /cvsroot/jake2/jake2/src/jake2/sound/joal In directory sc8-pr-cvs6.sourceforge.net:/tmp/cvs-serv25028/src/jake2/sound/joal Modified Files: Channel.java Log Message: makes sound source buffer changing more stable Index: Channel.java =================================================================== RCS file: /cvsroot/jake2/jake2/src/jake2/sound/joal/Channel.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** Channel.java 23 Nov 2006 13:13:58 -0000 1.9 --- Channel.java 23 Nov 2006 13:43:59 -0000 1.10 *************** *** 333,337 **** --- 333,343 ---- if (ch.modified) { if (ch.bufferChanged) { + try { + al.alSourcei(sourceId, AL.AL_BUFFER, ch.bufferId); + } catch (ALException e) { + // fallback for buffer changing + al.alSourceStop(sourceId); al.alSourcei(sourceId, AL.AL_BUFFER, ch.bufferId); + } } if (ch.volumeChanged) { |