- added code to read Toshiba channel list (*.db)

- code cleanup
This commit is contained in:
hbeham
2013-04-12 00:47:50 +02:00
parent b670be943a
commit bcbae783d4
19 changed files with 566 additions and 60 deletions

View File

@@ -187,5 +187,30 @@ namespace ChanSort.Api
this.AddServiceType(serviceType, fields[2]);
}
#endregion
#region IsRadioOrTv()
public SignalSource IsRadioOrTv(int dvbServiceType)
{
switch (dvbServiceType)
{
case 0x01: // SD MPEG1
case 0x11: // MPEG2-HD
case 0x16: // H264/AVC-SD
case 0x19: // H264/AVC-HD
return SignalSource.Tv;
case 0x02:
case 0x0A:
return SignalSource.Radio;
}
return 0;
}
#endregion
#region GetDvbtChannel()
public object GetDvbtChannel(decimal freq)
{
return ((int) (freq - 106)/8);
}
#endregion
}
}