2013-12-24 20:17:44 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_AUDIO_H
|
|
|
|
#define OCARINA_AUDIO_H
|
|
|
|
|
|
|
|
extern "C" {
|
|
|
|
#include <gst/gst.h>
|
|
|
|
}
|
|
|
|
|
|
|
|
namespace audio
|
|
|
|
{
|
|
|
|
|
|
|
|
void init(int *, char ***);
|
2013-12-25 14:35:33 -05:00
|
|
|
void quit();
|
2013-12-24 20:17:44 -05:00
|
|
|
|
|
|
|
bool play();
|
|
|
|
bool pause();
|
2013-12-24 22:07:23 -05:00
|
|
|
bool stop();
|
2013-12-24 20:17:44 -05:00
|
|
|
bool next();
|
2013-12-24 22:07:23 -05:00
|
|
|
unsigned int current_trackid();
|
2013-12-24 20:17:44 -05:00
|
|
|
|
2013-12-24 22:07:23 -05:00
|
|
|
bool seek_to(long);
|
|
|
|
long position();
|
|
|
|
long duration();
|
2013-12-25 14:35:33 -05:00
|
|
|
|
|
|
|
void pause_after(bool, unsigned int);
|
|
|
|
bool pause_enabled();
|
|
|
|
unsigned int pause_count();
|
2013-12-24 20:17:44 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OCARINA_AUDIO_H */
|