libsaria: Add play(), pause() and get_state() functions

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-03-22 20:22:16 -04:00
parent e3c44146ff
commit fe76a8d30a
2 changed files with 13 additions and 2 deletions

View File

@ -28,8 +28,9 @@ namespace libsaria
/*void load_file(string);*/
void load(string);
void play();
/*void pause();
void stop();
void pause();
GstState get_state();
/*void stop();
bool is_playing();*/
/* Position related functions */

View File

@ -47,6 +47,16 @@ namespace libsaria
trigger_callback(PLAY);*/
}
void audio::pause()
{
change_state(GST_STATE_PAUSED);
}
GstState audio::get_state()
{
return cur_state;
}
/*void audio::pause()
{
if (cur_file == "")