Update SoundEngine.cpp

This commit is contained in:
void_17 2026-03-03 00:27:15 +07:00 committed by GitHub
parent 3a22f1b916
commit bfdc6258f9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1329,10 +1329,10 @@ void SoundEngine::playMusicUpdate()
else
{
const char* extensions[] = { ".wav" }; // only wav works outside of binka files to my knowledge, i've only tested ogg, wav, mp3 and only wav worked out of the bunch
int count = sizeof(extensions) / sizeof(extensions[0]);
size_t count = sizeof(extensions) / sizeof(extensions[0]);
bool found = false;
for (int i = 0; i < count; i++)
for (size_t i = 0; i < count; i++)
{
int n = sprintf_s(reinterpret_cast<char*>(m_szStreamName), 512, "%s%s%s%s", m_szMusicPath, folder, m_szStreamFileA[m_musicID], extensions[i]);
if (n < 0) continue;