I hope that I can do some tests this evening.
Regards, Alex[/quote]
Hi Alex,
Thanks for willing to look in to this
![:up: :up:](./images/smilies/thumbup.gif)
Bauke
Code: Alles auswählen
int TvRadio, ChNum;
TYPE_TapChInfo ChInfo;
TYPE_SatInfoS *SatInfo;
//Collect the info about the currently selected satellite
TAP_Channel_GetCurrent (&TvRadio, &ChNum);
TAP_Channel_GetInfo (TvRadio, ChNum, &ChInfo);
//Switch off the power of both LNBs
SatInfo = (TYPE_SatInfoS*)(FlashGetBlockStartAddress (Satellites) + 4);
SatInfo [ChInfo.satIdx].LNB [0].Power = 0;
SatInfo [ChInfo.satIdx].LNB [1].Power = 0;
//Write a dummy 'last TV channel' value into the EEPROM
*(word*)(GetEEPROMAddress() + 0x04) = 999;
//Select the same channel to resend the LNB setup to the tuner
TAP_Channel_Start (CHANNEL_Main, TvRadio, ChNum);
TAP_Delay (50);
//Reapply the power
SatInfo [ChInfo.satIdx].LNB [0].Power = 1;
SatInfo [ChInfo.satIdx].LNB [1].Power = 1;
*(word*)(GetEEPROMAddress() + 0x04) = 999;
TAP_Channel_Start (CHANNEL_Main, TvRadio, ChNum);
Code: Alles auswählen
SetTuner (1 - GetTuner (CHANNEL_Main));
Code: Alles auswählen
SetTuner (1 - GetTuner (CHANNEL_Main));
Code: Alles auswählen
SetTuner (1 - GetTuner (CHANNEL_Main));
Code: Alles auswählen
#include "FBLib_av.h"
Code: Alles auswählen
#include "FBLib_av.h"
Theoretisch könnten wir uns die Clusternummer aus der DB holen und direkt in ein Verzeichnis springen. Dazu bräuchte ich nur eine HDD_TAP_SetCurrentDirCluster (dword Cluster); basteln (was ziemlich einfach ist).Und Verzeichniswechsel haben wir ja auch genug![]()
Auch das ist ganz einfach. Du rufst in der TAP-Main InitTAPAPIFix() auf und verwendest danach GetPlayInfo und Co. so, als hätten sie keine Bugs.In der helper.c habe ich noch aus alten Zeiten das TAP_Save_GetPlayinfo usw. drin (und verwende es auch noch). Da könntest Du mir mal zeigen, wie ich das auf die Lib umstellen kann...![]()
Init reicht.Muss ich das beim Beenden irgendwie wieder stoppen oder reicht das pure Init (ohne End)?