Ah, yes, I was going to mention how this is done in SLAM, indeed with SoundData, and if it wasn't done with SoundData there would be one less thing that SoundData could do, and therefore make it a bit cleaner conceptually I think. And it would also make caching slightly more obvious if streaming and static Sources could be cached the same way. In Zoetrope, there is this code...bartbes wrote:Which is currently done by using the same SoundData?
Code: Select all
if length == 'short' then
self._library.sound[path] = love.sound.newSoundData(path)
elseif length == 'long' then
self._library.sound[path] = love.sound.newDecoder(path)