tag | line | file | source code |
sample | 1201 | drivers/sound/gus_wave.c | int sample, best_sample, best_delta, delta_freq; |
sample | 1241 | drivers/sound/gus_wave.c | sample = -1; |
sample | 1245 | drivers/sound/gus_wave.c | while (samplep != 0 && samplep != NOT_SAMPLE && sample == -1) |
sample | 1257 | drivers/sound/gus_wave.c | sample = samplep; |
sample | 1261 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1262 | drivers/sound/gus_wave.c | sample = best_sample; |
sample | 1264 | drivers/sound/gus_wave.c | if (sample == -1) |
sample | 1270 | drivers/sound/gus_wave.c | is16bits = (samples[sample].mode & WAVE_16_BITS) ? 1 : 0; |
sample | 1271 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
sample | 1272 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
sample | 1280 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
sample | 1281 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
sample | 1285 | drivers/sound/gus_wave.c | sample_map[voice] = sample; |
sample | 1287 | drivers/sound/gus_wave.c | base_note = samples[sample].base_note / 100; /* Try to avoid overflows */ |
sample | 1290 | drivers/sound/gus_wave.c | freq = samples[sample].base_freq * note_freq / base_note; |
sample | 1303 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
sample | 1310 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_16_BITS) |
sample | 1313 | drivers/sound/gus_wave.c | if ((sample_ptrs[sample] >> 18) != |
sample | 1314 | drivers/sound/gus_wave.c | ((sample_ptrs[sample] + samples[sample].len) >> 18)) |
sample | 1344 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1345 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + samples[sample].len - |
sample | 1348 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
sample | 1351 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOPING) |
sample | 1355 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_BIDIR_LOOP) |
sample | 1358 | drivers/sound/gus_wave.c | if (samples[sample].mode & WAVE_LOOP_BACK) |
sample | 1361 | drivers/sound/gus_wave.c | sample_ptrs[sample] + samples[sample].loop_end - |
sample | 1366 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample] + samples[sample].loop_start, |
sample | 1368 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].loop_end, |
sample | 1376 | drivers/sound/gus_wave.c | gus_write_addr (0x02, sample_ptrs[sample], |
sample | 1378 | drivers/sound/gus_wave.c | gus_write_addr (0x04, sample_ptrs[sample] + samples[sample].len - 1, |
sample | 2631 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2636 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2639 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2642 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* Num of bytes left */ |
sample | 2655 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |
sample | 2672 | drivers/sound/gus_wave.c | int sample = rec->parm1; |
sample | 2677 | drivers/sound/gus_wave.c | if (sample < 0 || sample >= free_sample) |
sample | 2680 | drivers/sound/gus_wave.c | if (offs < 0 || offs >= samples[sample].len) |
sample | 2685 | drivers/sound/gus_wave.c | n = samples[sample].len - offs; /* |
sample | 2700 | drivers/sound/gus_wave.c | offs += sample_ptrs[sample]; /* |