struct aub_block_header bh;
unsigned int data;
+ static int nr;
+
+ nr++;
+
/* Emit the aub header:
*/
memset(&fh, 0, sizeof(fh));
fh.minor = 0x0;
fh.major = 0x7;
memcpy(fh.application, __progname, sizeof(fh.application));
- fh.day = 0x0;
+ fh.day = (nr>>24) & 0xff;
fh.month = 0x0;
fh.year = 0x0;
fh.timezone = 0x0;
- fh.second = 0x0;
- fh.minute = 0x0;
- fh.hour = 0x0;
+ fh.second = nr & 0xff;
+ fh.minute = (nr>>8) & 0xff;
+ fh.hour = (nr>>16) & 0xff;
fh.comment_length = 0x0;
if (fwrite(&fh, sizeof(fh), 1, aub_file) < 0)