All Channel Function Documentation
TAP_Channel_GetTotalNum
Topfield Documentation
int TAP_Channel_GetTotalNum(int *nTvSvc, int *nRadioSvc)
- nTvSvc : number of TV services
- nRadioSvc : number of Radio services
Additional Documentation
Add any additional documentation here.TAP_Channel_GetInfo
Topfield Documentation
int TAP_Channel_GetInfo(int chType, int chNum, TYPE_TapChInfo *chInfo)
- chType : Type of channel. It is defined in Tap.h.
- chNum : Channel number.
- chInfo : Channel information.
Additional Documentation
Despite the Topfield documentation, the return code is 1 if there is no error. Also "chNum" is not the logical channel number, it is a number from 0..(MAX_TV_SERVICES-1) or 0..(MAX_RADIO_SERVICES-1) indexing into the PVRs internal table of channels.The "tunerNum" information does not refer to the tuner in use, but (I think) to whether each tuner detected the channel at the last relevant scan. The "freq" information does not seem to have any direct relationship to the RF frequency - this can be obtained with FireBird's "Flash" extensions. EMJB
TAP_Channel_GetCurrent
Topfield Documentation
int TAP_Channel_GetCurrent(int *tvRadio, int* chNum)
- tvRadio : Channel type.
- chNum : Channel Number.
Additional Documentation
Add any additional documentation here.TAP_Channel_Start
Int TAP_Channel_Start(int mainSub, int chType, int chNum)
- mainSub : 1 = main screen, 0 = sub screen.
- chType : Channel type.
- chNum : Channel number.
Additional Documentation
chNum can also be -1 to start the last channel that was active.TAP_Channel_Scale
int TAP_Channel_Scale(int mainSub, long x, long y, long w, long h, bool anim)
- mainSub : 1 = main screen, 0 = sub screen.
- x, y : upper-left coordinate of the screen.
- w,h : width and height of the screen.
- anim : if TRUE, it is scaled smoothly.
Additional Documentation
Add any additional documentation here.TAP_Channel_IsPlayable
int TAP_Channel_IsPlayable(int mainSub, int chType, int chNum)
- mainSub : 1 = main screen, 0 = sub screen.
- chType : Channel type.
- chNum : Channel number.
Additional Documentation
It checks whether the specified channel can be played. Return values: 0 (yes), 1 (yes - but other tuner), 2 (no)TAP_Channel_Move
int TAP_Channel_Move(int mainSub, int dir)
- mainSub : 1 = main screen, 0 = sub screen.
- dir : direction of zapping. (-1 = decrease channel number, 1 = increase channel number).
Additional Documentation
Add any additional documentation here.TAP_Channel_Stop
int TAP_Channel_Stop(int mainSub)
- mainSub : 1 = main screen, 0 = sub screen.
Additional Documentation
Add any additional documentation here.TAP_Channel_GetTotalAudioTrack
Int TAP_Channel_GetTotalAudioTrack(void)
Additional Documentation
Add any additional documentation here.TAP_Channel_GetAudioTrackName
char *TAP_Channel_GetAudioTrackName(int trkNum, char *trkName)
- trkNum : audio track number.
- trkName : the pointer of specified audio track name. It must be allocated or NULL. In case of NULL, only.
Additional Documentation
Add any additional documentation here.TAP_Channel_SetAudioTrack
Int TAP_Channel_SetAudioTrack(int trkNum)
- trkNum : audio track number.
Additional Documentation
Add any additional documentation here.TAP_Channel_GetTotalSubtitleTrack
int TAP_Channel_GetTotalSubtitleTrack(void)
Additional Documentation
Add any additional documentation here.TAP_Channel_GetSubtitleTrackName
char *TAP_Channel_GetSubtitleTrackName(int trkNum, char *trkName)
- trkNum : audio track number.
- trkName : the pointer of specified subtitle track name. It must be allocated or NULL. In case of NULL, only return value has the pointer of the subtitle track name.
Additional Documentation
Add any additional documentation here.TAP_Channel_SetSubtitleTrack
int TAP_Channel_SetSubtitleTrack(int trkNum)
- trkNum : subtitle track number.
Additional Documentation
EMJB: R2-D2 has found that if you give it 0xFFFF as the trkNum then it turns off subtitles. As well as changing the system setting, it has a call to set the subtitle PID (and other things).TAP_Channel_IsStarted
bool TAP_Channel_IsStarted(int mainSub);
- mainSub : 1 = main screen, 0 = sub screen.
Additional Documentation
You can use CHANNEL_Main or CHANNEL_Sub in place of hard coded values for the mainSub parameter.TAP_Channel_GetCurrentSubTV
int TAP_Channel_GetCurrentSubTV(int *svcNum);
- svcNum : Service number.
Additional Documentation
Add any additional documentation here.TAP_Channel_GetFirstInfo
int TAP_Channel_GetFirstInfo(int svcType, TYPE_TapChInfo *chInfo);
- svcType : 1 = Radio service, 0 = TV service.
- chInfo : Channel information.
Additional Documentation
Add any additional documentation here.TAP_Channel_GetNextInfo
int TAP_Channel_GetNextInfo(TYPE_TapChInfo *chInfo);
- chInfo : Channel information.