tag | line | file | source code |
sample | 1175 | drivers/sound/gus_wave.c | int sample, best_sample, best_delta, delta_freq; |
sample | 1215 | drivers/sound/gus_wave.c | sample = -1; |
sample | 1219 | drivers/sound/gus_wave.c | while (samplep >= 0 && sample == -1) |
sample | 1231 | drivers/sound/gus_wave.c | sample = samplep; |
sample | 1237 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1238 | drivers/sound/gus_wave.c | sample = best_sample; |
sample | 1240 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1246 | drivers/sound/gus_wave.c | is16bits = (samples[sample].mode & WAVE_16_BITS) ? 1 : 0; |
sample | 1247 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
sample | 1248 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
sample | 1256 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
sample | 1257 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
sample | 1261 | drivers/sound/gus_wave.c | sample_map[voice] = sample; |
sample | 1263 | drivers/sound/gus_wave.c | base_note = samples[sample].base_note / 100; /* Try to avoid overflows */ |
sample | 1266 | drivers/sound/gus_wave.c | freq = samples[sample].base_freq * note_freq / base_note; |
sample | 1279 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
sample | 1286 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_16_BITS) |
sample | 1289 | drivers/sound/gus_wave.c | if ((sample_ptrs[sample] >> 18) != |
sample | 1290 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
sample | 1316 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1317 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
sample | 1320 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
sample | 1323 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOPING) |
sample | 1327 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_BIDIR_LOOP) |
sample | 1330 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1333 | drivers/sound/gus_wave.c | sample_ptrs[sample] + samples[sample].loop_end - |
sample | 1338 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample] + samples[sample].loop_start, |
sample | 1340 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].loop_end, |
sample | 1348 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample], |
sample | 1350 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
sample | 2516 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2521 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2524 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2527 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
sample | 2540 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |
sample | 2557 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2562 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2565 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2570 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
sample | 2585 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |