Lines Matching refs:simple
225 struct simple_instrument *simple;
236 simple = KINSTR_DATA(instr);
247 loop_start = simple->loop_start >> 4;
248 loop_end = simple->loop_end >> 4;
249 sample_start = (simple->start + position) >> 4;
250 if( sample_start >= simple->size )
251 sample_start = simple->start >> 4;
252 sample_end = simple->size;
255 if (simple->format & SIMPLE_WAVE_16BIT) {
259 if (simple->format & SIMPLE_WAVE_STEREO) {
263 if (!(simple->format & SIMPLE_WAVE_UNSIGNED))
266 voice->LBA = simple->address.memory;
268 if (simple->format & SIMPLE_WAVE_LOOP) {
413 struct simple_instrument *simple;
421 simple = KINSTR_DATA(instr);
428 voice->LBA = simple->address.memory + loop_start;
452 struct simple_instrument *simple;
460 simple = KINSTR_DATA(instr);
464 if (simple->format & SIMPLE_WAVE_LOOP) {
465 if( position >= simple->loop_start ) {
466 voice->CSO = (position - simple->loop_start) >> 4;
469 voice->CSO = (simple->loop_start - position) >> 4;