Skip to content

Instantly share code, notes, and snippets.

@maimainoue
Created August 16, 2015 19:20
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maimainoue/b2851bab9e1e842b921c to your computer and use it in GitHub Desktop.
Save maimainoue/b2851bab9e1e842b921c to your computer and use it in GitHub Desktop.
Gracenote 用のTOC生成
// 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