audio: Access function for recent playqueue
The recent playqueue is needed for the history tab. Signed-off-by: Anna Schumaker <schumaker.anna@gmail.com>
This commit is contained in:
parent
7d10ebe5c3
commit
6446b7e5ad
|
@ -4,6 +4,8 @@
|
||||||
#ifndef OCARINA_AUDIO_H
|
#ifndef OCARINA_AUDIO_H
|
||||||
#define OCARINA_AUDIO_H
|
#define OCARINA_AUDIO_H
|
||||||
|
|
||||||
|
#include <playqueue.h>
|
||||||
|
|
||||||
extern "C" {
|
extern "C" {
|
||||||
#include <gst/gst.h>
|
#include <gst/gst.h>
|
||||||
}
|
}
|
||||||
|
@ -22,6 +24,7 @@ namespace audio
|
||||||
void next();
|
void next();
|
||||||
void previous();
|
void previous();
|
||||||
unsigned int current_trackid();
|
unsigned int current_trackid();
|
||||||
|
Playqueue *get_recent_pq();
|
||||||
|
|
||||||
void seek_to(long);
|
void seek_to(long);
|
||||||
long position();
|
long position();
|
||||||
|
|
|
@ -189,6 +189,11 @@ unsigned int audio :: current_trackid()
|
||||||
return cur_trackid;
|
return cur_trackid;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Playqueue *audio :: get_recent_pq()
|
||||||
|
{
|
||||||
|
return &o_recently_played;
|
||||||
|
}
|
||||||
|
|
||||||
long audio :: position()
|
long audio :: position()
|
||||||
{
|
{
|
||||||
long position;
|
long position;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user