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:
parent
d68d5f2b40
commit
1a6b6d9c54
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue