libsaria: Reenabled seeking

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-03-22 20:59:36 -04:00
parent d6d455ab7f
commit 595806ec0f
2 changed files with 4 additions and 4 deletions

View File

@ -34,8 +34,8 @@ namespace libsaria
bool is_playing();*/
/* Position related functions */
/*bool seek(int);
void seek_to(double);*/
/*bool seek(int);*/
void seek_to(double);
gint64 duration();
gint64 position();
string posstr();

View File

@ -43,13 +43,13 @@ namespace libsaria
{
/* Seek to this many seconds into the song */
/*void audio::seek_to(double pos)
void audio::seek_to(double pos)
{
gst_element_seek_simple(GST_ELEMENT(player),
GST_FORMAT_TIME,
GST_SEEK_FLAG_FLUSH,
pos);
}*/
}
/*
* Use to seek forward or backward in a song