mirror of
https://github.com/vcmi/vcmi.git
synced 2025-08-15 20:03:15 +02:00
simplyfied
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user