tag | line | file | source code |
samples | 156 | drivers/sound/gus_wave.c | static struct patch_info *samples; |
samples | 465 | drivers/sound/gus_wave.c | if (position < samples[sample_no].len) |
samples | 470 | drivers/sound/gus_wave.c | samples[sample_no].mode & WAVE_16_BITS); |
samples | 623 | drivers/sound/gus_wave.c | is16bits = (samples[instr_no].mode & WAVE_16_BITS) ? 1 : 0; /* 8 or 16 bits */ |
samples | 1252 | drivers/sound/gus_wave.c | delta_freq = note_freq - samples[samplep].base_note; |
samples | 1260 | drivers/sound/gus_wave.c | if (samples[samplep].low_note <= note_freq && |
samples | 1261 | drivers/sound/gus_wave.c | note_freq <= samples[samplep].high_note) |
samples | 1264 | drivers/sound/gus_wave.c | samplep = samples[samplep].key; /* |
samples | 1277 | drivers/sound/gus_wave.c | is16bits = (samples[sample].mode & WAVE_16_BITS) ? 1 : 0; |
samples | 1278 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
samples | 1279 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
samples | 1287 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
samples | 1288 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
samples | 1294 | drivers/sound/gus_wave.c | base_note = samples[sample].base_note / 100; /* Try to avoid overflows */ |
samples | 1297 | drivers/sound/gus_wave.c | freq = samples[sample].base_freq * note_freq / base_note; |
samples | 1310 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
samples | 1317 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_16_BITS) |
samples | 1321 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
samples | 1347 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
samples | 1348 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
samples | 1354 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOPING) |
samples | 1358 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_BIDIR_LOOP) |
samples | 1361 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
samples | 1364 | drivers/sound/gus_wave.c | sample_ptrs[sample] + samples[sample].loop_end - |
samples | 1369 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample] + samples[sample].loop_start, |
samples | 1371 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].loop_end, |
samples | 1381 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
samples | 1621 | drivers/sound/gus_wave.c | memcpy ((char *) &samples[free_sample], &patch, sizeof_patch); |
samples | 1627 | drivers/sound/gus_wave.c | samples[free_sample].key = patch_table[instr]; |
samples | 2521 | drivers/sound/gus_wave.c | ptr = samples[ptr].key; /* Follow link */ |
samples | 2536 | drivers/sound/gus_wave.c | ptr = samples[ptr].key; /* Follow link */ |
samples | 2551 | drivers/sound/gus_wave.c | memcpy (rec->data.data8, (char *) &samples[ptr], |
samples | 2573 | drivers/sound/gus_wave.c | if (pat->len > samples[ptr].len) /* Cannot expand sample */ |
samples | 2576 | drivers/sound/gus_wave.c | pat->key = samples[ptr].key; /* Ensure the link is correct */ |
samples | 2578 | drivers/sound/gus_wave.c | memcpy ((char *) &samples[ptr], rec->data.data8, |
samples | 2596 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
samples | 2599 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
samples | 2637 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
samples | 2642 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
samples | 3068 | drivers/sound/gus_wave.c | PERMANENT_MALLOC (struct patch_info *, samples, |
samples | 3069 | drivers/sound/gus_wave.c | (MAX_SAMPLE + 1) * sizeof (*samples), mem_start); |