mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-13 19:54:17 +02:00
simplyfied
This commit is contained in:
@@ -205,8 +205,7 @@ double CSoundHandler::getSoundDuration(const AudioPath & sound) {
|
||||
sampleLen = sampleCount;
|
||||
}
|
||||
seconds = (double)sampleLen / (double)spec.freq;
|
||||
} else
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
return seconds;
|
||||
}
|
||||
|
Reference in New Issue
Block a user