tag | line | file | source code |
voices | 127 | drivers/sound/gus_wave.c | struct voice_info voices[32]; |
voices | 462 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 463 | drivers/sound/gus_wave.c | voices[voice].offset_pending = position; |
voices | 488 | drivers/sound/gus_wave.c | voices[voice].panning = 0; |
voices | 489 | drivers/sound/gus_wave.c | voices[voice].mode = 0; |
voices | 490 | drivers/sound/gus_wave.c | voices[voice].orig_freq = 20000; |
voices | 491 | drivers/sound/gus_wave.c | voices[voice].current_freq = 20000; |
voices | 492 | drivers/sound/gus_wave.c | voices[voice].bender = 0; |
voices | 493 | drivers/sound/gus_wave.c | voices[voice].bender_range = 200; |
voices | 494 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 0; |
voices | 495 | drivers/sound/gus_wave.c | voices[voice].current_volume = 0; |
voices | 496 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 497 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 0; |
voices | 498 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 499 | drivers/sound/gus_wave.c | voices[voice].volume_irq_parm = 0; |
voices | 500 | drivers/sound/gus_wave.c | voices[voice].env_phase = 0; |
voices | 501 | drivers/sound/gus_wave.c | voices[voice].main_vol = 127; |
voices | 502 | drivers/sound/gus_wave.c | voices[voice].patch_vol = 127; |
voices | 503 | drivers/sound/gus_wave.c | voices[voice].expression_vol = 127; |
voices | 504 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 514 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_SUSTAIN_ON && voices[voice].env_phase == 2) |
voices | 526 | drivers/sound/gus_wave.c | if (voices[voice].env_phase >= 5) |
voices | 532 | drivers/sound/gus_wave.c | prev_vol = voices[voice].current_volume; |
voices | 533 | drivers/sound/gus_wave.c | phase = ++voices[voice].env_phase; |
voices | 534 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voices | 535 | drivers/sound/gus_wave.c | vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; |
voices | 536 | drivers/sound/gus_wave.c | rate = voices[voice].env_rate[phase]; |
voices | 546 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_ENVELOPE; |
voices | 569 | drivers/sound/gus_wave.c | voices[voice].current_volume = vol; |
voices | 576 | drivers/sound/gus_wave.c | voices[voice].env_phase = -1; |
voices | 577 | drivers/sound/gus_wave.c | voices[voice].current_volume = 64; |
voices | 588 | drivers/sound/gus_wave.c | voices[voice].env_phase = 2; /* Will be incremented by step_envelope */ |
voices | 590 | drivers/sound/gus_wave.c | voices[voice].current_volume = |
voices | 591 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 594 | drivers/sound/gus_wave.c | voices[voice].mode &= ~WAVE_SUSTAIN_ON; |
voices | 619 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 639 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voices | 879 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 881 | drivers/sound/gus_wave.c | voices[voice].sample_pending = instr_no; |
voices | 913 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 915 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 1; |
voices | 938 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES && voices[voice].env_phase != 2) |
voices | 951 | drivers/sound/gus_wave.c | hi_limit = voices[voice].current_volume; |
voices | 973 | drivers/sound/gus_wave.c | voices[voice].panning = value; |
voices | 987 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voices | 992 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 993 | drivers/sound/gus_wave.c | gus_adagio_vol (voices[voice].midi_volume, voices[voice].main_vol, |
voices | 994 | drivers/sound/gus_wave.c | voices[voice].expression_vol, |
voices | 995 | drivers/sound/gus_wave.c | voices[voice].patch_vol); |
voices | 999 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 1000 | drivers/sound/gus_wave.c | gus_linear_vol (volume, voices[voice].main_vol); |
voices | 1004 | drivers/sound/gus_wave.c | voices[voice].initial_volume = volume_base + |
voices | 1005 | drivers/sound/gus_wave.c | (voices[voice].midi_volume * volume_scale); |
voices | 1008 | drivers/sound/gus_wave.c | if (voices[voice].initial_volume > 4030) |
voices | 1009 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 4030; |
voices | 1019 | drivers/sound/gus_wave.c | voices[voice].current_volume = voices[voice].initial_volume; |
voices | 1029 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
voices | 1085 | drivers/sound/gus_wave.c | if (!(voices[voice].mode & WAVE_ENVELOPES)) |
voices | 1087 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voices | 1102 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voices | 1106 | drivers/sound/gus_wave.c | if (voices[voice].env_phase < 0) |
voices | 1109 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voices | 1125 | drivers/sound/gus_wave.c | voices[voice].bender = value; |
voices | 1127 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1129 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, |
voices | 1130 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voices | 1131 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 1141 | drivers/sound/gus_wave.c | voices[voice].bender_range = value; |
voices | 1148 | drivers/sound/gus_wave.c | voices[voice].expression_vol = value; |
voices | 1149 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1155 | drivers/sound/gus_wave.c | voices[voice].panning = (value * 2) - 128; |
voices | 1162 | drivers/sound/gus_wave.c | voices[voice].main_vol = value; |
voices | 1163 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1188 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1190 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voices | 1247 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
voices | 1248 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
voices | 1250 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1256 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
voices | 1257 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
voices | 1268 | drivers/sound/gus_wave.c | voices[voice].orig_freq = freq; |
voices | 1275 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, |
voices | 1276 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voices | 1277 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 1279 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
voices | 1305 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1318 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); /* start=end */ |
voices | 1320 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
voices | 1334 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); |
voices | 1346 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = LMODE_FINISH; /* Ramp down at the end */ |
voices | 1347 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 1; |
voices | 1377 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 1378 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voices | 1392 | drivers/sound/gus_wave.c | voices[voice].offset_pending = 0; |
voices | 1393 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 0; |
voices | 1394 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 1395 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 1397 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voices | 1400 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voices | 1401 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voices | 1402 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 1412 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
voices | 1413 | drivers/sound/gus_wave.c | voices[voice].note_pending = note_num; |
voices | 1414 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voices | 1415 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_START_NOTE; |
voices | 1733 | drivers/sound/gus_wave.c | if ((voices[voice].volume_irq_mode == VMODE_START_NOTE) && |
voices | 1800 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 1801 | drivers/sound/gus_wave.c | voices[voice].current_volume = p1; |
voices | 1805 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1814 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1823 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1833 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1843 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2057 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
voices | 2130 | drivers/sound/gus_wave.c | voices[0].loop_irq_mode = LMODE_PCM_STOP; |
voices | 2409 | drivers/sound/gus_wave.c | voices[voice].bender = value - 8192; |
voices | 2410 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, |
voices | 2411 | drivers/sound/gus_wave.c | voices[voice].bender_range); |
voices | 2412 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 3021 | drivers/sound/gus_wave.c | mode = voices[voice].loop_irq_mode; |
voices | 3022 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 3023 | drivers/sound/gus_wave.c | parm = voices[voice].loop_irq_parm; |
voices | 3048 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voices | 3111 | drivers/sound/gus_wave.c | mode = voices[voice].volume_irq_mode; |
voices | 3112 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 3113 | drivers/sound/gus_wave.c | parm = voices[voice].volume_irq_parm; |
voices | 3132 | drivers/sound/gus_wave.c | guswave_start_note2 (voices[voice].dev_pending, voice, |
voices | 3133 | drivers/sound/gus_wave.c | voices[voice].note_pending, voices[voice].volume_pending); |
voices | 3134 | drivers/sound/gus_wave.c | if (voices[voice].kill_pending) |
voices | 3135 | drivers/sound/gus_wave.c | guswave_kill_note (voices[voice].dev_pending, voice, |
voices | 3136 | drivers/sound/gus_wave.c | voices[voice].note_pending, 0); |
voices | 3138 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voices | 3140 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voices | 3141 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voices | 3142 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 65 | drivers/sound/opl3.c | static struct voice_info voices[MAX_VOICE]; |
voices | 309 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20); |
voices | 311 | drivers/sound/opl3.c | voices[voice].keyon_byte = 0; |
voices | 312 | drivers/sound/opl3.c | voices[voice].bender = 0; |
voices | 313 | drivers/sound/opl3.c | voices[voice].bender_range = 200; /* |
voices | 316 | drivers/sound/opl3.c | voices[voice].orig_freq = 0; |
voices | 317 | drivers/sound/opl3.c | voices[voice].current_freq = 0; |
voices | 318 | drivers/sound/opl3.c | voices[voice].mode = 0; |
voices | 451 | drivers/sound/opl3.c | if (voices[voice].mode == 0) |
voices | 454 | drivers/sound/opl3.c | if (voices[voice].mode == 2) |
voices | 706 | drivers/sound/opl3.c | voices[voice].mode = voice_mode; |
voices | 710 | drivers/sound/opl3.c | freq = voices[voice].orig_freq = note_to_freq (note) / 1000; |
voices | 717 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voices | 718 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voices | 732 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voices | 957 | drivers/sound/opl3.c | if (voices[voice].mode == 4) |
voices | 1013 | drivers/sound/opl3.c | voices[voice].bender = value; |
voices | 1016 | drivers/sound/opl3.c | if (!(voices[voice].keyon_byte & 0x20)) |
voices | 1021 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voices | 1022 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voices | 1039 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voices | 1056 | drivers/sound/opl3.c | voices[voice].bender_range = value; |