tag | line | file | source code |
samples | 147 | drivers/sound/gus_wave.c | static struct patch_info samples[MAX_SAMPLE + 1]; |
samples | 559 | drivers/sound/gus_wave.c | is16bits = (samples[instr_no].mode & WAVE_16_BITS) ? 1 : 0; /* 8 or 16 bit samples */ |
samples | 1099 | drivers/sound/gus_wave.c | delta_freq = note_freq - samples[samplep].base_note; |
samples | 1107 | drivers/sound/gus_wave.c | if (samples[samplep].low_note <= note_freq && note_freq <= samples[samplep].high_note) |
samples | 1110 | drivers/sound/gus_wave.c | samplep = samples[samplep].key; /* Follow link */ |
samples | 1121 | drivers/sound/gus_wave.c | is16bits = (samples[sample].mode & WAVE_16_BITS) ? 1 : 0; /* 8 or 16 bit samples */ |
samples | 1122 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
samples | 1123 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
samples | 1131 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
samples | 1132 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
samples | 1138 | drivers/sound/gus_wave.c | base_note = samples[sample].base_note / 100; /* To avoid overflows */ |
samples | 1141 | drivers/sound/gus_wave.c | freq = samples[sample].base_freq * note_freq / base_note; |
samples | 1153 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
samples | 1160 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_16_BITS) |
samples | 1164 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
samples | 1184 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
samples | 1185 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len, is16bits); /* Sample start=end */ |
samples | 1189 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOPING) |
samples | 1193 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_BIDIR_LOOP) |
samples | 1196 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
samples | 1199 | drivers/sound/gus_wave.c | sample_ptrs[sample] + samples[sample].loop_end, is16bits); |
samples | 1203 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample] + samples[sample].loop_start, is16bits); /* Loop start location */ |
samples | 1204 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].loop_end, is16bits); /* Loop end location */ |
samples | 1213 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len, is16bits); /* Loop end location */ |
samples | 1376 | drivers/sound/gus_wave.c | memcpy ((char *) &samples[free_sample], &patch, sizeof_patch); |
samples | 1382 | drivers/sound/gus_wave.c | samples[free_sample].key = patch_table[instr]; |
samples | 2161 | drivers/sound/gus_wave.c | ptr = samples[ptr].key; /* Follow link */ |
samples | 2176 | drivers/sound/gus_wave.c | ptr = samples[ptr].key; /* Follow link */ |
samples | 2191 | drivers/sound/gus_wave.c | memcpy (rec->data.data8, (char *) &samples[ptr], |
samples | 2213 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
samples | 2216 | drivers/sound/gus_wave.c | pat->key = samples[ptr].key; /* Ensure the link is correct */ |
samples | 2218 | drivers/sound/gus_wave.c | memcpy ((char *) &samples[ptr], rec->data.data8, |
samples | 2236 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
samples | 2239 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Nr of bytes left */ |
samples | 2269 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
samples | 2272 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Nr of bytes left */ |