Libsaria class can play and pause music

Eventually the class will contain an audio instance, so there won't be a
global play or pause function anymore.
This commit is contained in:
Bryan Schumaker 2011-08-21 18:10:18 -04:00
parent 0173f97fba
commit ec2c848a90
2 changed files with 17 additions and 0 deletions

View File

@ -9,6 +9,10 @@ class Libsaria
Libsaria(int, char**);
~Libsaria();
/* Control functions */
void play();
void pause();
};
class Libsaria *libsaria_get();

13
libsaria/controls.cpp Normal file
View File

@ -0,0 +1,13 @@
#include <libsaria/libsaria.h>
#include <libsaria/audio.h>
void Libsaria::play()
{
gst_play();
}
void Libsaria::pause()
{
gst_pause();
}