driver/audioplay.cpp: cleanup header, init m_SecondsToSkip variable

Origin commit data
------------------
Branch: ni/coolstream
Commit: f095b4e293
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-12-11 (Wed, 11 Dec 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-12-11 12:41:57 +04:00
parent 05c1e1f221
commit bd1de63be0
2 changed files with 2 additions and 3 deletions

View File

@@ -164,6 +164,7 @@ void CAudioPlayer::init()
CBaseDec::Init();
state = CBaseDec::STOP;
thrPlay = 0;
m_SecondsToSkip = 0;
}
void CAudioPlayer::sc_callback(void *arg)
@@ -210,6 +211,7 @@ void CAudioPlayer::clearFileData()
m_Audiofile.clear();
m_played_time=0;
m_sc_buffered=0;
m_SecondsToSkip = 0;
}
CAudioMetaData CAudioPlayer::getMetaData()

View File

@@ -37,9 +37,7 @@ class CAudioPlayer
private:
time_t m_played_time;
int m_sc_buffered;
FILE *soundfd;
pthread_t thrPlay;
FILE *fp;
CBaseDec::State state;
static void* PlayThread(void*);
void clearFileData();
@@ -47,7 +45,6 @@ private:
protected:
CAudiofile m_Audiofile;
bool SetDSP(int soundfd, int fmt, unsigned int dsp_speed, unsigned int channels);
public:
static CAudioPlayer* getInstance();