ocarina/libsaria/audio/audio.h
Bryan Schumaker bec76743da libsaria: Call gst_quit()
This gives gstreamer a chance to free anything it's created.

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
2012-02-11 12:57:22 -05:00

38 lines
606 B
C++

#ifndef LIBSARIA_AUDIO_COMPONENT_H
#define LIBSARIA_AUDIO_COMPONENT_H
#include <string>
using namespace std;
extern "C" {
#include <gst/gst.h>
}
extern GstElement *player;
extern GstBus *bus;
struct StoredAudioState
{
string cur_file;
double position;
bool was_playing;
};
void load_file(GstElement *, string);
void set_audio_sink(GstElement *);
void save_audio_state(struct StoredAudioState *);
void load_audio_state(struct StoredAudioState *);
namespace libsaria
{
namespace audio
{
void init_volume();
void init_alsa();
void quit_alsa();
}
}
#endif /* LIBSARIA_AUDIO_PRIVATE_H */