Use a modulo to keep the buffer position in range for looping sources
commit36f133a5ae4c1d9ed4cf4769d69fea54e825822d
authorChris Robinson <chris.kcat@gmail.com>
Fri, 10 Oct 2008 08:13:32 +0000 (10 01:13 -0700)
committerChris Robinson <chris.kcat@gmail.com>
Fri, 10 Oct 2008 08:13:32 +0000 (10 01:13 -0700)
tree02c326f748c7b2840573d7a0579d6ac06d836f7d
parent74a58c0d095417b7dc1192eb608b718f212ab27d
Use a modulo to keep the buffer position in range for looping sources
A high pitch and low buffer size can cause a lot of unnecessary iterations
otherwise, that just decrement the position
Alc/ALu.c