2013-12-24 20:17:44 -05:00
|
|
|
/*
|
|
|
|
* Copyright 2013 (c) Anna Schumaker.
|
|
|
|
*/
|
|
|
|
#ifndef OCARINA_AUDIO_H
|
|
|
|
#define OCARINA_AUDIO_H
|
|
|
|
|
2014-05-24 13:37:51 -04:00
|
|
|
#include <error.h>
|
2014-04-01 20:28:19 -04:00
|
|
|
#include <queue.h>
|
2014-01-24 20:30:25 -05:00
|
|
|
|
2014-01-22 22:31:42 -05:00
|
|
|
#include <string>
|
|
|
|
|
2013-12-24 20:17:44 -05:00
|
|
|
namespace audio
|
|
|
|
{
|
|
|
|
|
|
|
|
void init(int *, char ***);
|
2014-04-01 21:00:30 -04:00
|
|
|
void load_state();
|
2013-12-25 14:35:33 -05:00
|
|
|
void quit();
|
2013-12-24 20:17:44 -05:00
|
|
|
|
2014-01-04 13:09:44 -05:00
|
|
|
void play();
|
|
|
|
void pause();
|
2014-01-30 21:25:36 -05:00
|
|
|
void toggle_play();
|
2014-01-04 13:09:44 -05:00
|
|
|
void stop();
|
|
|
|
void next();
|
2014-01-04 13:57:51 -05:00
|
|
|
void previous();
|
2014-01-26 12:42:13 -05:00
|
|
|
void load_trackid(unsigned int);
|
2013-12-24 22:07:23 -05:00
|
|
|
unsigned int current_trackid();
|
2014-04-01 20:28:19 -04:00
|
|
|
Queue *get_recent_pq();
|
2013-12-24 20:17:44 -05:00
|
|
|
|
2014-01-04 13:09:44 -05:00
|
|
|
void seek_to(long);
|
2013-12-24 22:07:23 -05:00
|
|
|
long position();
|
2014-01-22 22:31:42 -05:00
|
|
|
std::string position_str();
|
2013-12-24 22:07:23 -05:00
|
|
|
long duration();
|
2013-12-25 14:35:33 -05:00
|
|
|
|
|
|
|
void pause_after(bool, unsigned int);
|
|
|
|
bool pause_enabled();
|
|
|
|
unsigned int pause_count();
|
2013-12-24 20:17:44 -05:00
|
|
|
};
|
|
|
|
|
|
|
|
#endif /* OCARINA_AUDIO_H */
|