Created
August 16, 2015 19:20
-
-
Save maimainoue/b2851bab9e1e842b921c to your computer and use it in GitHub Desktop.
Gracenote 用のTOC生成
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Gracenote Toc | |
MEDIATOOLS.generateGracenoteToc = function(di) { | |
var pregap = 150; | |
// TOC情報作成 | |
var tocStr = (di.track[0].start + pregap) + ' '; | |
for(var idx=0;idx<di.trackCount;idx++){ | |
tocStr += (di.track[idx].start + di.track[idx].len + pregap) + ' '; | |
} | |
//console.log(tocStr); | |
return tocStr; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment