ocarina/include/libsaria/audio.h
Bryan Schumaker 8987dddade libsaria: Added a get_progress() function to the audio namespace
This function is used to access how far into the song the current audio
position is.  The value is returned as a percentage of the total length
for easy use by the UI.
2011-10-29 17:23:25 -04:00

32 lines
504 B
C++

#ifndef LIBSARIA_AUDIO_H
#define LIBSARIA_AUDIO_H
#include <string>
using namespace std;
namespace libsaria
{
namespace audio
{
void init(int, char**);
string get_current_file();
/* Playback control functions */
void load(string);
void play();
void pause();
void stop();
/* Position related functions */
bool seek(int);
bool seek_to(double);
int get_progress();
/* Volume functions */
double get_volume();
void set_volume(double);
};
};
#endif /* LIBSARIA_AUDIO_H */