fix static sound length

main
cosmonaut 2021-01-20 11:03:26 -08:00
parent ffc51cca18
commit 481c17945a
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ namespace MoonWorks.Audio
throw new AudioLoadException("Error loading file!");
}
var info = FAudio.stb_vorbis_get_info(filePointer);
var bufferSize = FAudio.stb_vorbis_stream_length_in_samples(filePointer);
var bufferSize = FAudio.stb_vorbis_stream_length_in_samples(filePointer) * info.channels;
var buffer = new float[bufferSize];
FAudio.stb_vorbis_get_samples_float_interleaved(