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:
parent
0173f97fba
commit
ec2c848a90
|
@ -9,6 +9,10 @@ class Libsaria
|
|||
Libsaria(int, char**);
|
||||
~Libsaria();
|
||||
|
||||
/* Control functions */
|
||||
void play();
|
||||
void pause();
|
||||
|
||||
};
|
||||
|
||||
class Libsaria *libsaria_get();
|
||||
|
|
|
@ -0,0 +1,13 @@
|
|||
|
||||
#include <libsaria/libsaria.h>
|
||||
#include <libsaria/audio.h>
|
||||
|
||||
void Libsaria::play()
|
||||
{
|
||||
gst_play();
|
||||
}
|
||||
|
||||
void Libsaria::pause()
|
||||
{
|
||||
gst_pause();
|
||||
}
|
Loading…
Reference in New Issue