rem: + stream->blkmod) % stream->blkmod;
add: + stream->blkmod - 1) % stream->blkmod;
context: echo_record_inth(void* inthparams){	echo_stream *stream = (echo_stream *)inthparams;	//int32 count;		//TRACE(("echo_record_inth\n"));		acquire_spinlock(&slock);	stream->real_time = system_time();	stream->frames_count += BUFFER_FRAMES;	stream->buffer_cycle = (stream->trigblk 		+ stream->blkmod) % stream->blkmod;	stream->update_needed = true;	release_spinlock(&slock);				//get_sem_count(stream->card->buffer_ready_sem, &count);	//if (count <= 0)		release_sem_etc(stream->card->buffer_ready_sem, 1, B_DO_NOT_RESCHEDULE);}