tag | line | file | source code |
sample | 1196 | drivers/sound/gus_wave.c | int sample, best_sample, best_delta, delta_freq; |
sample | 1236 | drivers/sound/gus_wave.c | sample = -1; |
sample | 1240 | drivers/sound/gus_wave.c | while (samplep >= 0 && sample == -1) |
sample | 1252 | drivers/sound/gus_wave.c | sample = samplep; |
sample | 1258 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1259 | drivers/sound/gus_wave.c | sample = best_sample; |
sample | 1261 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1267 | drivers/sound/gus_wave.c | is16bits = (samples[sample].mode & WAVE_16_BITS) ? 1 : 0; |
sample | 1268 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
sample | 1269 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
sample | 1277 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
sample | 1278 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
sample | 1282 | drivers/sound/gus_wave.c | sample_map[voice] = sample; |
sample | 1284 | drivers/sound/gus_wave.c | base_note = samples[sample].base_note / 100; /* Try to avoid overflows */ |
sample | 1287 | drivers/sound/gus_wave.c | freq = samples[sample].base_freq * note_freq / base_note; |
sample | 1300 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
sample | 1307 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_16_BITS) |
sample | 1310 | drivers/sound/gus_wave.c | if ((sample_ptrs[sample] >> 18) != |
sample | 1311 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
sample | 1341 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1342 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
sample | 1345 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
sample | 1348 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOPING) |
sample | 1352 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_BIDIR_LOOP) |
sample | 1355 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1358 | drivers/sound/gus_wave.c | sample_ptrs[sample] + samples[sample].loop_end - |
sample | 1363 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample] + samples[sample].loop_start, |
sample | 1365 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].loop_end, |
sample | 1373 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample], |
sample | 1375 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
sample | 2627 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2632 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2635 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2638 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
sample | 2651 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |
sample | 2668 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2673 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2676 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2681 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
sample | 2696 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |