oai_emulation.info.time_s+=0.01;// emu time in s, each frame lasts for 10 ms // JNote: TODO check the coherency of the time and frame (I corrected it to 10 (instead of 0.01)
// if n_frames not set by the user or is greater than max num frame then set adjust the frame counter
if((oai_emulation.info.n_frames_flag==0)
||(oai_emulation.info.n_frames>=0xffff)){
frame%=(oai_emulation.info.n_frames-1);
}
update_omg(frame);// frequency is defined in the omg_global params configurable by the user