38 lines
498 B
C++
38 lines
498 B
C++
#ifndef LIBSARIA_AUDIO_H
|
|
#define LIBSARIA_AUDIO_H
|
|
|
|
#include <string>
|
|
using namespace std;
|
|
|
|
extern "C" {
|
|
#include <gst/gst.h>
|
|
}
|
|
|
|
class Audio
|
|
{
|
|
private:
|
|
GstElement *player;
|
|
string cur_file;
|
|
|
|
void reset();
|
|
void change_state(GstState);
|
|
|
|
public:
|
|
Audio();
|
|
~Audio();
|
|
|
|
void init(int, char **);
|
|
void load(string);
|
|
|
|
/* Control functions */
|
|
void play();
|
|
void pause();
|
|
void seek();
|
|
};
|
|
|
|
void audio_init(int, char **);
|
|
void gst_play();
|
|
void gst_pause();
|
|
|
|
#endif /* LIBSARIA_AUDIO_H */
|