audio: Remove the on_play() callback

There are no more users of this function.

Signed-off-by: Anna Schumaker <Anna@OcarinaProject.net>
This commit is contained in:
Anna Schumaker 2014-09-08 17:25:56 -04:00
parent d68d5f2b40
commit 1a6b6d9c54
3 changed files with 2 additions and 6 deletions

View File

@ -85,10 +85,8 @@ void audio :: init(int *argc, char ***argv)
void audio :: play()
{
if (!cur_track)
return;
if (driver :: get_driver()->play())
get_callbacks()->on_play();
if (cur_track)
driver :: get_driver()->play();
}
void audio :: pause()

View File

@ -12,7 +12,6 @@ static void no_op(Track *) {}
static struct Callbacks callbacks = {
.on_play = no_op,
.on_pause = no_op,
.on_track_loaded = no_op,
.on_pause_count_changed = no_op,

View File

@ -10,7 +10,6 @@
struct Callbacks {
/* Audio callbacks */
void (*on_play)();
void (*on_pause)();
void (*on_track_loaded)(Track *);
void (*on_pause_count_changed)(bool, unsigned int);