MCPcopy Create free account
hub / github.com/Aloshi/EmulationStation / getLengthMS

Method getLengthMS

src/Sound.cpp:144–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144Uint32 Sound::getLengthMS() const
145{
146 //44100 samples per second, 2 channels (stereo)
147 //I have no idea why the *0.75 is necessary, but otherwise it's inaccurate
148 return (Uint32)((mSampleLength / 44100.0f / 2.0f * 0.75f) * 1000);
149}

Callers 1

inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected