void SendAudioFrame(const unsigned char* audbuf, unsigned framesize) { CheckBegin(); //fprintf(stderr, "Writing 01wb of %u bytes\n", framesize); const unsigned char header[] = { s4("01wb"), u32(framesize) }; FlushWrite(avifp, header, sizeof(header)); FlushWrite(avifp, audbuf, framesize); }
void SendVideoFrame(const unsigned char* vidbuf, unsigned framesize) { CheckBegin(); //fprintf(stderr, "Writing 00dc of %u bytes\n", framesize); const unsigned char header[] = { s4("00dc"), u32(framesize) }; FlushWrite(avifp, header, sizeof(header)); FlushWrite(avifp, vidbuf, framesize); }
int TestIterators(hash_table* hash_info) { iterator it; char** i; for ( it = SetToEnd(hash_info); !CheckBegin(it) ; it = Back(it) ) { i = Value(it); } for ( it = SetToBegin(hash_info); !CheckEnd(it) ; it = Next(it) ) { i = Value(it); } return 0; }