LyricLine.ts 498 B

12345678910111213141516171819
  1. /**
  2. * The line info of lyric.
  3. */
  4. export class LyricLine {
  5. readonly text: string
  6. readonly beginTime: number
  7. nextTime: number
  8. /**
  9. * @param text The text of lyric line.
  10. * @param beginTime The begin timestamp of this lyric line.
  11. * @param nextTime The begin timestamp of the next lyric line.
  12. */
  13. constructor(text: string, beginTime: number, nextTime: number) {
  14. this.text = text
  15. this.beginTime = beginTime
  16. this.nextTime = nextTime
  17. }
  18. }