libsaria: Remove old controls.cpp file

Signed-off-by: Bryan Schumaker <bjschuma@gmail.com>
This commit is contained in:
Bryan Schumaker 2012-04-06 08:01:55 -04:00
parent da49c68e82
commit 3f030872ba
1 changed files with 0 additions and 69 deletions

View File

@ -1,69 +0,0 @@
// Copyright (c) 2011 Bryan Schumaker.
#include <libsaria/audio.h>
#include <libsaria/controls.h>
#include <libsaria/track.h>
#include <libsaria/library.h>
#include <libsaria/deck.h>
//static bool pause_after_current = false;
/*namespace libsaria
{
void play_file(string &filepath)
{
if (filepath == "")
return;
audio::load(filepath);
if (pause_after_current == true) {
audio::pause();
pause_after_current = false;
} else
audio::play();
}
void next()
{
//string filepath = next_file();
//play_file(filepath);
}
void play_id(sid_t &songid)
{
println("Playing id: %lu", songid);
Track *track = library::lookup(songid);
string filepath = track->get_filepath();
println(filepath);
play_file(filepath);
}
void set_pause_after(bool state)
{
pause_after_current = state;
}
bool get_pause_after()
{
return pause_after_current;
}
void toggle_play()
{
if (audio::is_playing())
audio::pause();
else
audio::play();
}
void rewind()
{
audio::seek(-5);
}
void forward()
{
audio::seek(5);
}
}; *//* Namespace: libsaria */