figured I’d share in case anyone is trying to load a stereo texture file. buffer_read_stereo needs to pull from buffers 1 and 2
file = _path.code .. "nc02-rs/lib/nc02-texture.wav"
sc.buffer_read_stereo(file, 0, 0, -1)
sc.pan(1,-1)
sc.rate(1,1)
sc.enable(1,1)
sc.buffer(1,1)
sc.level(1,1.0)
sc.loop(1,1)
sc.loop_start(1,0)
sc.loop_end(1,10)
sc.position(1,1)
sc.pan(2,1)
sc.rate(2,1)
sc.enable(2,1)
-- IMPORTANT! buffer_read_stereo puts the file into buffers 1 and 2
sc.buffer(2,2)
sc.level(2,1.0)
sc.loop(2, 1)
sc.loop_start(2,0)
sc.loop_end(2,10)
sc.position(2,1)
sc.play(1,1)
sc.play(2,1)
otherwise, even if your voices are panned, they will just be playing the left channel, so it’ll sound mono