
#ifndef __MP3_READER_H__
#define __MP3_READER_H__

#include "mecha.h"
#include "music_packet.h"

typedef struct s_Mp3Reader Mp3Reader;

Mp3Reader * mp3_reader_new (void);
void mp3_reader_destroy (void *ptr);

bool mp3_reader_open (Mp3Reader *instance, const char *uri);

MusicPacket * mp3_reader_get_packet (Mp3Reader *instance, int requestedUsecs);

#endif
