So, there was an int64 conversion in the way of making time, length, dataLength, and samples floats, causing an overflow once you get past the int64 limit. To fix that, I simply converted it to a float, and now you can load audio files over 6.6 hours with 44.1k sample rate!
I did make project/src/media/containers/OGG.cpp readable too.
I'm also planning to fix the memory leak problem and another problem with audio buffer when streaming audio. But I don't even know how I would fix that because I simply have never heard of some way to fix it entirely when doing new AudioSource(AudioBuffer.fromVorbisFile(VorbisFile.fromFile(sourceFile))) for the audio source (Which streams the ogg audio).
So, there was an int64 conversion in the way of making
time
,length
,dataLength
, andsamples
floats, causing an overflow once you get past the int64 limit. To fix that, I simply converted it to a float, and now you can load audio files over 6.6 hours with 44.1k sample rate!I did make
project/src/media/containers/OGG.cpp
readable too.I'm also planning to fix the memory leak problem and another problem with audio buffer when streaming audio. But I don't even know how I would fix that because I simply have never heard of some way to fix it entirely when doing
new AudioSource(AudioBuffer.fromVorbisFile(VorbisFile.fromFile(sourceFile)))
for the audio source (Which streams the ogg audio).