- libarmbox: some manual code nicenings

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2021-11-07 00:57:01 +01:00
committed by Thilo Graf
parent adb876646f
commit c4d691348f
9 changed files with 514 additions and 619 deletions

View File

@@ -83,18 +83,9 @@ class cPlayback
bool SetVPid(int /*pid*/);
bool SetSubtitlePid(int pid);
bool SetTeletextPid(int pid);
int GetAPid(void)
{
return mAudioStream;
}
int GetVPid(void)
{
return 0;
}
int GetSubtitlePid(void)
{
return mSubtitleStream;
}
int GetAPid(void) { return mAudioStream; }
int GetVPid(void) { return 0; }
int GetSubtitlePid(void) { return mSubtitleStream; }
int GetTeletextPid(void);
bool SetSpeed(int speed);
bool GetSpeed(int &speed) const;
@@ -133,7 +124,9 @@ class netlink_event : public OpenThreads::Thread
int m_player_state;
enum
{
stIdle, stRunning, stStopped,
stIdle,
stRunning,
stStopped,
};
struct streamid
{
@@ -157,10 +150,7 @@ class netlink_event : public OpenThreads::Thread
void Receive();
public:
static netlink_event *getInstance();
uint64_t getDuration()
{
return fileinfo.s64Duration;
};
uint64_t getDuration() { return fileinfo.s64Duration; };
bool Start(cPlayback *player);
bool Stop();
};