2

I am writing an application in C# which generates cue file in order to use in Goldwave.

In my program I'm generating a timestamp. For ex. Ticks = 77314055

Later I'm formatting a datetime until milliseconds: 00:07.731

For testing I'm entering the same value to Goldwave, exporting the cue file and in the cue result is: 00:07:55

How I should calculate this 55 millisecond value from 731?

oguz ismail
  • 1
  • 16
  • 47
  • 69
Özkan T.
  • 49
  • 4

2 Answers2

5

According to Hidrogenaud, .Cue file's time format is MM:SS:FF

" Index points are specified in MM:SS:FF format, and are relative to the start of the file currently referenced. MM is the number of minutes, SS the number of seconds, and FF the number of frames (there are seventy five frames to one second).

You can convert it as var frames = milliseconds * 0.075;

Orifjon
  • 915
  • 8
  • 25
0

Use mod function

long tick = 77314055;
long msec = tick % 100;
Soner Gönül
  • 97,193
  • 102
  • 206
  • 364
jdweng
  • 33,250
  • 2
  • 15
  • 20