
#ifndef __MUSIC_PACKET_H__
#define __MUSIC_PACKET_H__

#include <sys/time.h>

#include "../mecha/mecha.h"

typedef struct s_MusicPacket MusicPacket;

MusicPacket * music_packet_new (void);
void music_packet_destroy (void *ptr);

MusicPacket * music_packet_duplicate (MusicPacket *instance);

dynTstring * music_packet_data_get (MusicPacket *instance);
struct timeval music_packet_time_length_get (MusicPacket *instance);

void music_packet_time_length_add_usec (MusicPacket *instance, long usec);

int music_packet_timestamp_get (MusicPacket *instance);

int music_packet_time_length_usecs_get (MusicPacket *instance);

#endif
