libsaria: Remove some old audio code
Not needed anymore with recent changes. Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
parent
6bae34e487
commit
3d7082e6f9
|
@ -22,12 +22,6 @@ static bool change_state(GstState new_state)
|
|||
}
|
||||
}
|
||||
|
||||
/*static void reset()
|
||||
{
|
||||
cur_file = "";
|
||||
change_state(GST_STATE_NULL);
|
||||
}*/
|
||||
|
||||
void load_file(GstElement *playbin, string file)
|
||||
{
|
||||
GstState state = cur_state;
|
||||
|
@ -49,8 +43,6 @@ namespace libsaria
|
|||
void audio::play()
|
||||
{
|
||||
change_state(GST_STATE_PLAYING);
|
||||
/*if (change_state(GST_STATE_PLAYING))
|
||||
trigger_callback(PLAY);*/
|
||||
}
|
||||
|
||||
void audio::pause()
|
||||
|
@ -63,23 +55,8 @@ namespace libsaria
|
|||
return cur_state;
|
||||
}
|
||||
|
||||
/*void audio::pause()
|
||||
{
|
||||
if (cur_file == "")
|
||||
return;
|
||||
if (change_state(GST_STATE_PAUSED))
|
||||
trigger_callback(PAUSE);
|
||||
}
|
||||
|
||||
bool audio::is_playing()
|
||||
{
|
||||
return cur_state == GST_STATE_PLAYING;
|
||||
}*/
|
||||
|
||||
void audio::stop()
|
||||
{
|
||||
/*if (cur_file == "")
|
||||
return;*/
|
||||
pause();
|
||||
seek_to(0);
|
||||
}
|
||||
|
@ -89,9 +66,4 @@ namespace libsaria
|
|||
load_file(player, file);
|
||||
}
|
||||
|
||||
/*string audio::get_current_file()
|
||||
{
|
||||
return cur_file;
|
||||
}*/
|
||||
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue