Skip to content

FinitePlaybackDuration

The FinitePlaybackDuration struct refers to a single audio’s duration.

typedef struct FinitePlaybackDuration FinitePlaybackDuration;
struct FinitePlaybackDuration {
double trueSeconds;
int hours;
int minutes;
int seconds;
int milliseconds;
};
TypeDescription
double trueSecondsThe true duration of the audio in seconds
int hoursThe amount of hours in the audio’s duration.
int minutesThe minutes in the audio’s duration (after calculating the hours)
int secondsThe seconds in the audio’s duration (after calculating the minutes)
int millisecondsThe ms in the audio’s duration (after calculating the seconds)

This struct should be created with finite_audio_get_audio_duration and destroyed with finite_audio_cleanup