- fix build raspi

Signed-off-by: GetAway <get-away@t-online.de>
This commit is contained in:
max_10
2023-03-07 19:19:24 +01:00
committed by GetAway
parent 920bba65b2
commit 1c996435c8
4 changed files with 19 additions and 3 deletions

View File

@@ -38,7 +38,6 @@ class cRecord
#define RECORD_WRITER_CHUNKS 16 #define RECORD_WRITER_CHUNKS 16
unsigned char *io_buf[RECORD_WRITER_CHUNKS]; unsigned char *io_buf[RECORD_WRITER_CHUNKS];
size_t io_len[RECORD_WRITER_CHUNKS]; size_t io_len[RECORD_WRITER_CHUNKS];
public: public:
cRecord(int num = 0, int bs_dmx = 2048 * 1024, int bs = 4096 * 1024); cRecord(int num = 0, int bs_dmx = 2048 * 1024, int bs = 4096 * 1024);
void setFailureCallback(void (*f)(void *), void *d) { failureCallback = f; failureData = d; } void setFailureCallback(void (*f)(void *), void *d) { failureCallback = f; failureData = d; }

View File

@@ -50,7 +50,7 @@ class cAudio
int mixer_fd; /* if we are using the OSS mixer */ int mixer_fd; /* if we are using the OSS mixer */
int mixer_num; /* oss mixer to use, if any */ int mixer_num; /* oss mixer to use, if any */
AUDIO_FORMAT StreamType; int StreamType;
AUDIO_SYNC_MODE SyncMode; AUDIO_SYNC_MODE SyncMode;
bool started; bool started;
bool thread_started; bool thread_started;
@@ -84,7 +84,8 @@ class cAudio
int Start(void); int Start(void);
int Stop(void); int Stop(void);
bool Pause(bool Pcm = true); bool Pause(bool Pcm = true);
void SetStreamType(AUDIO_FORMAT type); void SetStreamType(int bypass);
int GetStreamType(void) { return StreamType; }
void SetSyncMode(AVSYNC_TYPE Mode); void SetSyncMode(AVSYNC_TYPE Mode);
/* select channels */ /* select channels */

View File

@@ -78,6 +78,18 @@ int cVideo::setBlank(int)
return 1; return 1;
} }
int cVideo::GetVideoSystem()
{
int current_video_system = VIDEO_STD_1080I50;
if (dec_w < 720)
current_video_system = VIDEO_STD_PAL;
else if (dec_w > 720 && dec_w <= 1280)
current_video_system = VIDEO_STD_720P50;
return current_video_system;
}
int cVideo::SetVideoSystem(int system, bool) int cVideo::SetVideoSystem(int system, bool)
{ {
int h; int h;

View File

@@ -180,6 +180,10 @@ class cVideo
int getBlank(void); int getBlank(void);
int setBlank(int enable); int setBlank(int enable);
/* set video_system */
int SetVideoSystem(int video_system, bool remember = true);
int GetVideoSystem();
/* change video play state. Parameters are all unused. */ /* change video play state. Parameters are all unused. */
int Start(void *PcrChannel = NULL, unsigned short PcrPid = 0, unsigned short VideoPid = 0, void *x = NULL); int Start(void *PcrChannel = NULL, unsigned short PcrPid = 0, unsigned short VideoPid = 0, void *x = NULL);
int Stop(bool blank = true); int Stop(bool blank = true);