#ifdef __cplusplus extern "C" { #endif /* __cplusplus */ #include "IEC61937.h" int add61937Head(void *outint,void * tempshort, int samples) { int ret =0; int i; int * out = (int*)outint; short* temp = (short*) tempshort; static int numtotal = 0; unsigned int channel_status[192]; union head61937 { headbpcuv head0; unsigned char head1; }head; word w1; samples>>=1; head.head0.other = 0; head.head0.B = 1; head.head0.P = 0; head.head0.C = 0; head.head0.U = 0; head.head0.V = 1; for (i=0 ; i<192; i++) { channel_status[i] = 0; } channel_status[1] = 1; //sample rates channel_status[24] = 0; channel_status[25] = 1; channel_status[26] = 0; channel_status[27] = 0; for (i = 0 ;i