[vdr] VDR developer version 1.3.21 - Handling of DD buffer
Klaus Schmidinger
Klaus.Schmidinger at cadsoft.de
Sun Feb 13 18:06:00 CET 2005
Helmut Auer wrote:
> Klaus Schmidinger schrieb:
>
>> VDR developer version 1.3.21 is now available at
>> ...
>> - Now using twice the buffer reserve in cTransfer if the primary DVB
>> card is an
>> unmodified version with only 2MB of SDRAM, to avoid audio stuttering
>> when
>> playing Dolby Digital over the DVB card (thanks to Christian
>> Jacobsen and Chad
>> Flynt for suggestions and experiments in that area).
>
>
> As far as I see in transfer.c, you are using always twice the buffer:
>
>> #define FW_NEEDS_BUFFER_RESERVE_FOR_AC3 #ifdef
>> FW_NEEDS_BUFFER_RESERVE_FOR_AC3 //XXX This is a very ugly hack to
>> allow cDvbOsd to reduce the buffer //XXX requirements in cTransfer if
>> it detects a 4MB full featured DVB card. bool DvbCardWith4MBofSDRAM =
>> false; #endif
>
>
> So DvbCardWith4MBofSDRAM is always false.
> Is there no way to detect if a 2 or 4 MB Card is used ? Also a define
> statement is a no-go for a distri.
Take a look at VDR/dvbosd.c:
#define FW_NEEDS_BUFFER_RESERVE_FOR_AC3
#ifdef FW_NEEDS_BUFFER_RESERVE_FOR_AC3
//XXX This is a very ugly hack to allow cDvbOsd to reduce the buffer
//XXX requirements in cTransfer if it detects a 4MB full featured DVB card.
extern bool DvbCardWith4MBofSDRAM;
DvbCardWith4MBofSDRAM = osdMem >= 1000000;
Klaus
More information about the vdr
mailing list