ocarina/include/libsaria/audio.h

38 lines
581 B
C++

#ifndef LIBSARIA_AUDIO_H
#define LIBSARIA_AUDIO_H
extern "C" {
#include <gst/gst.h>
}
#include <string>
using namespace std;
namespace libsaria
{
namespace audio
{
void init(int, char**);
string get_current_file();
/* Playback control functions */
void load(string);
void play();
void pause();
void stop();
/* Position related functions */
bool seek(int);
void seek_to(double);
gint64 duration();
gint64 position();
string posstr();
/* Volume functions */
double get_volume();
void set_volume(double);
};
};
#endif /* LIBSARIA_AUDIO_H */