Hi Justus,
Yes, as you've guessed the units they are stored in are stereo samples (even
for mono tracks -- all mono tracks are converted to stereo in memory when
read from file)
To get the cue position in seconds: cuePoint / 2 / sampleRate
Best,
RJ Ryan
On Tue, Jul 12, 2011 at 4:25 PM, Justus von tamyca <[email protected]> wrote:
> Hello everybody,
>
> Im just trying to figure out in which unit of measurement the Cue Points
> are saved.
>
> Let me give you an example:
> I have a song that is 3:32.34 long (3 minutes and 32 seconds). If I get
> the position of a cue point at the very end it returns the number:
> 18876672.
> This is approx. 88622 times the number of seconds in that song. If I now
> want to know the position of my cue point in seconds, I could just
> divide the position of my cue point by 88622 and get the exact second
> where my cue point lies. But this is not very satisfying for me. Is
> there a better way to calculate the position of a cuepoint in a song?
>
> I found in the sourcecode of the trackinfoobject.h this comment:
> /** Save the cue point (in samples... I think) */
> But I dont really know what it means if cue points are saved in samples?!
>
> I would be happy if someone could help me out with this one :)
>
> Greetings, Justus
>
>
> ------------------------------------------------------------------------------
> AppSumo Presents a FREE Video for the SourceForge Community by Eric
> Ries, the creator of the Lean Startup Methodology on "Lean Startup
> Secrets Revealed." This video shows you how to validate your ideas,
> optimize your ideas and identify your business strategy.
> http://p.sf.net/sfu/appsumosfdev2dev
> _______________________________________________
> Mixxx-devel mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/mixxx-devel
>
------------------------------------------------------------------------------
AppSumo Presents a FREE Video for the SourceForge Community by Eric
Ries, the creator of the Lean Startup Methodology on "Lean Startup
Secrets Revealed." This video shows you how to validate your ideas,
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
_______________________________________________
Mixxx-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mixxx-devel