1
0
mirror of https://github.com/vcmi/vcmi.git synced 2025-08-15 20:03:15 +02:00

simplyfied

This commit is contained in:
Laserlicht
2024-01-24 01:23:35 +01:00
committed by GitHub
parent e59078320c
commit 8870547d02

View File

@@ -205,8 +205,7 @@ double CSoundHandler::getSoundDuration(const AudioPath & sound) {
sampleLen = sampleCount; sampleLen = sampleCount;
} }
seconds = (double)sampleLen / (double)spec.freq; seconds = (double)sampleLen / (double)spec.freq;
} else }
return 0.0;
return seconds; return seconds;
} }