Added method to count currently playing tracks in Output classes
This commit is contained in:
parent
7afd3415b3
commit
0232417512
2 changed files with 5 additions and 0 deletions
|
@ -61,6 +61,10 @@ namespace Mist {
|
||||||
myConn.setBlocking(isBlocking);
|
myConn.setBlocking(isBlocking);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
uint32_t Output::currTrackCount() const{
|
||||||
|
return buffer.size();
|
||||||
|
}
|
||||||
|
|
||||||
void Output::updateMeta(){
|
void Output::updateMeta(){
|
||||||
//read metadata from page to myMeta variable
|
//read metadata from page to myMeta variable
|
||||||
if (nProxy.metaPages[0].mapped){
|
if (nProxy.metaPages[0].mapped){
|
||||||
|
|
|
@ -53,6 +53,7 @@ namespace Mist {
|
||||||
void selectDefaultTracks();
|
void selectDefaultTracks();
|
||||||
bool connectToFile(std::string file);
|
bool connectToFile(std::string file);
|
||||||
static bool listenMode(){return true;}
|
static bool listenMode(){return true;}
|
||||||
|
uint32_t currTrackCount() const;
|
||||||
virtual bool isReadyForPlay();
|
virtual bool isReadyForPlay();
|
||||||
//virtuals. The optional virtuals have default implementations that do as little as possible.
|
//virtuals. The optional virtuals have default implementations that do as little as possible.
|
||||||
virtual void sendNext() {}//REQUIRED! Others are optional.
|
virtual void sendNext() {}//REQUIRED! Others are optional.
|
||||||
|
|
Loading…
Add table
Reference in a new issue