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
|
||||
#define OCARINA_AUDIO_H
|
||||
|
||||
#include <playqueue.h>
|
||||
|
||||
extern "C" {
|
||||
#include <gst/gst.h>
|
||||
}
|
||||
|
@ -22,6 +24,7 @@ namespace audio
|
|||
void next();
|
||||
void previous();
|
||||
unsigned int current_trackid();
|
||||
Playqueue *get_recent_pq();
|
||||
|
||||
void seek_to(long);
|
||||
long position();
|
||||
|
|
|
@ -189,6 +189,11 @@ unsigned int audio :: current_trackid()
|
|||
return cur_trackid;
|
||||
}
|
||||
|
||||
Playqueue *audio :: get_recent_pq()
|
||||
{
|
||||
return &o_recently_played;
|
||||
}
|
||||
|
||||
long audio :: position()
|
||||
{
|
||||
long position;
|
||||
|
|
Loading…
Reference in New Issue