Flac samples calculation

只愿长相守 提交于 2019-12-23 01:16:14

问题


I have a cuesheet from EAC and a FLAC file with the full album in. Im trying to make a little python script to play the file, there for i need to be able to set the position where to start in the flac file.

How do i get from the CueSheet format MM:SS:FF to samples?


回答1:


Each minute contains 60 seconds (obviously); each second contains 75 frames; and each frame contains 588 samples.

So the calculation would be something like this...

offset = ((((minutes * 60) + seconds) * 75) + frames) * 588


来源:https://stackoverflow.com/questions/3728632/flac-samples-calculation

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!