mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-27 23:42:58 +02:00
driver/audioplay.cpp: cleanup header, init m_SecondsToSkip variable
This commit is contained in:
@@ -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()
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user