Transmission with record timing means the records are scheduled on the time tag set for each record.
Each time tag specifies a clock value defining when the record must be transmitted.
The option MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME
must be used for this type of transmission.
In the example below, the records are sent based on the absolute clock timing specified in the time tag field for each records.
ar429_aperiodic.c
#define BUFFER_SIZE 4096 // 4KB
#define MAX_TX_RECORDS_TO_TRANSMIT 8
HMXF_SERVER server;
HMXF_DEVICE device;
HMXF_CHANNEL txChannel;
HMXF_BUFFER txBuffer=0;
uint32 label, sdi, data, ssm, parity;
uint64 currentTime=0;
uint32 record;
uint64 delay100ms = 100000;
uint32 rc;
...
if (!rc)
if (!rc)
if (!rc)
{
if (!rec429)
rc = MAXT_ERROR_MEM;
}
if(!rc)
currentTime += delay100ms;
rec = rec429;
for (record=0; record < MAX_TX_RECORDS_TO_TRANSMIT && !rc; record++)
{
rec->
timeTag = currentTime+((record+1)*10000LL);
label = 7;
sdi = 1;
data = record*32;
ssm = 0;
parity = VMXF_A429_PARITY_ODD;
if(!rc)
}
if (!rc)
rc =
mxfA429TxAperiodicWrite(txBuffer, MXF_TXAPERIODIC_FLAG_USE_RECORD_ABSOLUTE_TIME, 0, MAX_TX_RECORDS_TO_TRANSMIT, rec429);
if (rec429)
free(rec429);
...
}