sfxSndStream

Ogg file from libsndfile now working. we can pull more information from the format and specifics of the file from libsndfile should maybe look at updating all the parameters around mFormat so it feeds openal settings better.

Next step is to remove the other stream classes.
This commit is contained in:
marauder2k7 2024-03-24 11:33:42 +00:00
parent 3652367b36
commit 147044796b
2 changed files with 5 additions and 5 deletions

View file

@ -350,7 +350,7 @@ SFXBuffer* SFXProfile::_createBuffer()
Con::printf( "%s SFX: %s (%i channels, %i kHz, %.02f sec, %i kb)",
mDescription->mIsStreaming ? "Streaming" : "Loading", resource->getFileName().c_str(),
format.getChannels(),
format.getSamplesPerSecond() / 1000,
format.getSamplesPerSecond(),
F32( resource->getDuration() ) / 1000.0f,
format.getDataLength( resource->getDuration() ) / 1024 );
#endif