• Home
  • Raw
  • Download

Lines Matching refs:instrument

724 						if (psf->instrument == NULL && (psf->instrument = psf_instrument_alloc ()) == NULL)  in aiff_read_header()
732 psf->instrument->basenote = bytes [0] ; in aiff_read_header()
733 psf->instrument->detune = bytes [1] ; in aiff_read_header()
734 psf->instrument->key_lo = bytes [2] ; in aiff_read_header()
735 psf->instrument->key_hi = bytes [3] ; in aiff_read_header()
736 psf->instrument->velocity_lo = bytes [4] ; in aiff_read_header()
737 psf->instrument->velocity_hi = bytes [5] ; in aiff_read_header()
739 psf->instrument->gain = gain ; in aiff_read_header()
750 { psf->instrument->loop_count = 0 ; in aiff_read_header()
751 psf->instrument->loops [0].mode = SF_LOOP_NONE ; in aiff_read_header()
754 { psf->instrument->loop_count = 1 ; in aiff_read_header()
755 psf->instrument->loops [0].mode = SF_LOOP_FORWARD ; in aiff_read_header()
756 psf->instrument->loops [0].start = begin ; in aiff_read_header()
757 psf->instrument->loops [0].end = end ; in aiff_read_header()
758 psf->instrument->loops [0].count = 0 ; in aiff_read_header()
766 psf->instrument->loops [1].mode = SF_LOOP_NONE ; in aiff_read_header()
768 { psf->instrument->loop_count += 1 ; in aiff_read_header()
769 psf->instrument->loops [1].mode = SF_LOOP_FORWARD ; in aiff_read_header()
770 psf->instrument->loops [1].start = begin ; in aiff_read_header()
771 psf->instrument->loops [1].end = end ; in aiff_read_header()
772 psf->instrument->loops [1].count = 0 ; in aiff_read_header()
929 for (ji = 0 ; ji < psf->instrument->loop_count ; ji ++) in aiff_read_header()
930 { if (ji < ARRAY_LEN (psf->instrument->loops)) in aiff_read_header()
931 …{ psf->instrument->loops [ji].start = marker_to_position (paiff->markstr, psf->instrument->loops [… in aiff_read_header()
932 …psf->instrument->loops [ji].end = marker_to_position (paiff->markstr, psf->instrument->loops [ji].… in aiff_read_header()
933 psf->instrument->loops [ji].mode = SF_LOOP_FORWARD ; in aiff_read_header()
938 if (psf->cues->cue_count > (uint32_t) (psf->instrument->loop_count * 2)) in aiff_read_header()
941 for (j = 0 ; j < psf->cues->cue_count - (uint32_t) (psf->instrument->loop_count * 2) ; j ++) in aiff_read_header()
943 …psf->cues->cue_points [j].indx = psf->cues->cue_points [j + psf->instrument->loop_count * 2].indx ; in aiff_read_header()
944 …psf->cues->cue_points [j].position = psf->cues->cue_points [j + psf->instrument->loop_count * 2].p… in aiff_read_header()
945 …psf->cues->cue_points [j].fcc_chunk = psf->cues->cue_points [j + psf->instrument->loop_count * 2].… in aiff_read_header()
946 …psf->cues->cue_points [j].chunk_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2… in aiff_read_header()
947 …psf->cues->cue_points [j].block_start = psf->cues->cue_points [j + psf->instrument->loop_count * 2… in aiff_read_header()
948 …psf->cues->cue_points [j].sample_offset = psf->cues->cue_points [j + psf->instrument->loop_count *… in aiff_read_header()
950 …psf->cues->cue_points [j].name [str_index] = psf->cues->cue_points [j + psf->instrument->loop_coun… in aiff_read_header()
952 psf->cues->cue_count -= psf->instrument->loop_count * 2 ; in aiff_read_header()
1437 if (psf->instrument != NULL && psf->cues != NULL) in aiff_write_header()
1443 else if (psf->instrument == NULL && psf->cues != NULL) in aiff_write_header()