I am creating a minecraft map with a custom resource pack in which I have custom sounds and a custom sounds.json file. Since some sounds I need to play are longer than one or two minutes, I set the "stream" option in their sounds.json file to true, in order to avoid lag spikes due to sound loading.
The problem: sometimes all the sounds that have the "stream" option set to "true" suddently stop playing, and cannot be played again until a resource pack reload. However this continue to happen again and I costantly need to reload the resource pack approximately every half hour of playing. I am approaching to the map release, and I really wish to fix this bug before that. I wonder if that can be a .ogg file problem...
If this can help here's how a sample of my sounds.json file looks like: