Lines Matching refs:current_ptr
115 handle->current_ptr += handle->next_delta_bytesize; in SeqMain()
118 if (*handle->current_ptr >= 0x80) in SeqMain()
121 current_event = handle->running_status = *handle->current_ptr; in SeqMain()
136 if (*handle->current_ptr == SMF_META) in SeqMain()
152 handle->current_ptr = handle->loop_begin; in SeqMain()
158 handle->current_ptr += read_size; in SeqMain()
164 if (*handle->current_ptr == SMF_SYSX) in SeqMain()
168 if (SEQ_SYSX_BUFFER_SIZE > handle->current_ptr[1] + 1) in SeqMain()
173 seqSysxBuffer[0] = handle->current_ptr[0]; in SeqMain()
174 for (i = 1; i <= handle->current_ptr[1]; i++) in SeqMain()
176 seqSysxBuffer[i] = handle->current_ptr[i + 1]; in SeqMain()
184 handle->current_ptr += handle->current_ptr[1] + 2; in SeqMain()
191 seq_sys.callback(handle->current_ptr); in SeqMain()
194 handle->current_ptr += in SeqMain()
201 SeqReadVariableData(handle->current_ptr, &handle->delta_time); in SeqMain()
228 switch (handle->current_ptr[1]) in SeqExecMetaEvent()
231 if (handle->current_ptr[2] != 1) in SeqExecMetaEvent()
237 if (handle->current_ptr[3] == '[') in SeqExecMetaEvent()
240 handle->loop_begin = handle->current_ptr + handle->current_ptr[2] + 3; in SeqExecMetaEvent()
242 else if (handle->current_ptr[3] == ']') in SeqExecMetaEvent()
255 handle->tempo = handle->current_ptr[3]; in SeqExecMetaEvent()
257 handle->tempo += handle->current_ptr[4]; in SeqExecMetaEvent()
259 handle->tempo += handle->current_ptr[5]; in SeqExecMetaEvent()
265 return (u8)(handle->current_ptr[2] + 3); in SeqExecMetaEvent()
289 handle->current_ptr = smfdata + read_size; in SeqPlay()
295 if (handle->current_ptr[i] != mtrk[i]) in SeqPlay()
301 handle->current_ptr += sizeof(u8) * 4; in SeqPlay()
303 handle->chunk_size = ReverseEndian32(*(u32 *)handle->current_ptr); in SeqPlay()
304 handle->current_ptr += sizeof(u32); in SeqPlay()
307 handle->track_begin = handle->current_ptr; in SeqPlay()
321 handle->next_delta_bytesize = SeqReadVariableData(handle->current_ptr, &handle->delta_time); in SeqPlay()
342 handle->current_ptr = handle->track_begin; in SeqStop()