#ifndef TIMELINE_H
#define TIMELINE_H

#include <stdio.h>
#include <stdlib.h>
#include <math.h>

#include "../../include/types.h"
#include "../../include/audio/sample.h"


#define MAX_SAMPLE_NUM 65535


//int ImportSample(TimelineData* timeline, char* file);
int ImportSample(TimelineData* timeline, char* file, uint32_t beatOffset, uint8_t track);

void AdjustSampleBeats(AlsaData* alsa_data, TimelineData* timeline);

#endif
