tag | line | file | source code |
voices | 153 | drivers/sound/gus_wave.c | struct voice_info voices[32]; |
voices | 536 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 537 | drivers/sound/gus_wave.c | voices[voice].offset_pending = position; |
voices | 567 | drivers/sound/gus_wave.c | voices[voice].panning = 0; |
voices | 568 | drivers/sound/gus_wave.c | voices[voice].mode = 0; |
voices | 569 | drivers/sound/gus_wave.c | voices[voice].orig_freq = 20000; |
voices | 570 | drivers/sound/gus_wave.c | voices[voice].current_freq = 20000; |
voices | 571 | drivers/sound/gus_wave.c | voices[voice].bender = 0; |
voices | 572 | drivers/sound/gus_wave.c | voices[voice].bender_range = 200; |
voices | 573 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 0; |
voices | 574 | drivers/sound/gus_wave.c | voices[voice].current_volume = 0; |
voices | 575 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 576 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 0; |
voices | 577 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 578 | drivers/sound/gus_wave.c | voices[voice].volume_irq_parm = 0; |
voices | 579 | drivers/sound/gus_wave.c | voices[voice].env_phase = 0; |
voices | 580 | drivers/sound/gus_wave.c | voices[voice].main_vol = 127; |
voices | 581 | drivers/sound/gus_wave.c | voices[voice].patch_vol = 127; |
voices | 582 | drivers/sound/gus_wave.c | voices[voice].expression_vol = 127; |
voices | 583 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 592 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_SUSTAIN_ON && voices[voice].env_phase == 2) |
voices | 600 | drivers/sound/gus_wave.c | if (voices[voice].env_phase >= 5) |
voices | 610 | drivers/sound/gus_wave.c | prev_vol = voices[voice].current_volume; |
voices | 612 | drivers/sound/gus_wave.c | phase = ++voices[voice].env_phase; |
voices | 614 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voices | 616 | drivers/sound/gus_wave.c | vol = voices[voice].initial_volume * voices[voice].env_offset[phase] / 255; |
voices | 617 | drivers/sound/gus_wave.c | rate = voices[voice].env_rate[phase]; |
voices | 622 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_ENVELOPE; |
voices | 652 | drivers/sound/gus_wave.c | voices[voice].current_volume = vol; |
voices | 658 | drivers/sound/gus_wave.c | voices[voice].env_phase = -1; |
voices | 659 | drivers/sound/gus_wave.c | voices[voice].current_volume = 64; |
voices | 672 | drivers/sound/gus_wave.c | voices[voice].env_phase = 2; /* |
voices | 676 | drivers/sound/gus_wave.c | voices[voice].current_volume = |
voices | 677 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 682 | drivers/sound/gus_wave.c | voices[voice].mode &= ~WAVE_SUSTAIN_ON; |
voices | 706 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 730 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voices | 1039 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 1041 | drivers/sound/gus_wave.c | voices[voice].sample_pending = instr_no; |
voices | 1079 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 1080 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 1; |
voices | 1104 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES && voices[voice].env_phase != 2) |
voices | 1121 | drivers/sound/gus_wave.c | hi_limit = voices[voice].current_volume; |
voices | 1145 | drivers/sound/gus_wave.c | voices[voice].panning = value; |
voices | 1152 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voices | 1157 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 1158 | drivers/sound/gus_wave.c | gus_adagio_vol (voices[voice].midi_volume, voices[voice].main_vol, |
voices | 1159 | drivers/sound/gus_wave.c | voices[voice].expression_vol, |
voices | 1160 | drivers/sound/gus_wave.c | voices[voice].patch_vol); |
voices | 1164 | drivers/sound/gus_wave.c | voices[voice].initial_volume = volume_base + |
voices | 1165 | drivers/sound/gus_wave.c | (voices[voice].midi_volume * volume_scale); |
voices | 1168 | drivers/sound/gus_wave.c | if (voices[voice].initial_volume > 4030) |
voices | 1169 | drivers/sound/gus_wave.c | voices[voice].initial_volume = 4030; |
voices | 1186 | drivers/sound/gus_wave.c | voices[voice].current_volume = voices[voice].initial_volume; |
voices | 1189 | drivers/sound/gus_wave.c | target = voices[voice].initial_volume; |
voices | 1255 | drivers/sound/gus_wave.c | if (!(voices[voice].mode & WAVE_ENVELOPES)) |
voices | 1257 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voices | 1276 | drivers/sound/gus_wave.c | compute_and_set_volume (voice, voices[voice].midi_volume, 1); |
voices | 1280 | drivers/sound/gus_wave.c | if (voices[voice].env_phase < 0) |
voices | 1283 | drivers/sound/gus_wave.c | compute_volume (voice, voices[voice].midi_volume); |
voices | 1287 | drivers/sound/gus_wave.c | voices[voice].current_volume = |
voices | 1292 | drivers/sound/gus_wave.c | voices[voice].env_phase--; |
voices | 1309 | drivers/sound/gus_wave.c | voices[voice].bender = value; |
voices | 1311 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1313 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, voices[voice].bender_range); |
voices | 1314 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 1324 | drivers/sound/gus_wave.c | voices[voice].bender_range = value; |
voices | 1332 | drivers/sound/gus_wave.c | voices[voice].expression_vol = value; |
voices | 1333 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1339 | drivers/sound/gus_wave.c | voices[voice].panning = (value * 2) - 128; |
voices | 1348 | drivers/sound/gus_wave.c | voices[voice].main_vol = value; |
voices | 1349 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode != VMODE_START_NOTE) |
voices | 1376 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1378 | drivers/sound/gus_wave.c | voices[voice].midi_volume = volume; |
voices | 1440 | drivers/sound/gus_wave.c | voices[voice].mode = samples[sample].mode; |
voices | 1441 | drivers/sound/gus_wave.c | voices[voice].patch_vol = samples[sample].volume; |
voices | 1443 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1449 | drivers/sound/gus_wave.c | voices[voice].env_rate[i] = samples[sample].env_rate[i]; |
voices | 1450 | drivers/sound/gus_wave.c | voices[voice].env_offset[i] = samples[sample].env_offset[i]; |
voices | 1463 | drivers/sound/gus_wave.c | voices[voice].orig_freq = freq; |
voices | 1470 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voices | 1471 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 1473 | drivers/sound/gus_wave.c | pan = (samples[sample].panning + voices[voice].panning) / 32; |
voices | 1500 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 1510 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); /* Sample |
voices | 1513 | drivers/sound/gus_wave.c | gus_write_addr (0x0a, sample_ptrs[sample] + voices[voice].offset_pending, |
voices | 1531 | drivers/sound/gus_wave.c | voices[voice].offset_pending, is16bits); |
voices | 1551 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = LMODE_FINISH; /* |
voices | 1555 | drivers/sound/gus_wave.c | voices[voice].loop_irq_parm = 1; |
voices | 1589 | drivers/sound/gus_wave.c | if (voices[voice].volume_irq_mode == VMODE_START_NOTE) |
voices | 1590 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voices | 1601 | drivers/sound/gus_wave.c | voices[voice].offset_pending = 0; |
voices | 1602 | drivers/sound/gus_wave.c | voices[voice].kill_pending = 0; |
voices | 1603 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 1604 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 1606 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voices | 1608 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voices | 1609 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voices | 1610 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 1619 | drivers/sound/gus_wave.c | voices[voice].dev_pending = dev; |
voices | 1620 | drivers/sound/gus_wave.c | voices[voice].note_pending = note_num; |
voices | 1621 | drivers/sound/gus_wave.c | voices[voice].volume_pending = volume; |
voices | 1622 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_START_NOTE; |
voices | 1973 | drivers/sound/gus_wave.c | if ((voices[voice].volume_irq_mode == VMODE_START_NOTE) && |
voices | 2049 | drivers/sound/gus_wave.c | voices[voice].initial_volume = |
voices | 2050 | drivers/sound/gus_wave.c | voices[voice].current_volume = p1; |
voices | 2054 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2065 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2076 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2090 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2104 | drivers/sound/gus_wave.c | if (voices[voice].mode & WAVE_ENVELOPES) |
voices | 2325 | drivers/sound/gus_wave.c | voices[chn].loop_irq_mode = LMODE_PCM; |
voices | 2434 | drivers/sound/gus_wave.c | voices[0].loop_irq_mode = LMODE_PCM_STOP; |
voices | 2739 | drivers/sound/gus_wave.c | voices[voice].bender = value - 8192; |
voices | 2740 | drivers/sound/gus_wave.c | freq = compute_finetune (voices[voice].orig_freq, value, voices[voice].bender_range); |
voices | 2741 | drivers/sound/gus_wave.c | voices[voice].current_freq = freq; |
voices | 3207 | drivers/sound/gus_wave.c | mode = voices[voice].loop_irq_mode; |
voices | 3208 | drivers/sound/gus_wave.c | voices[voice].loop_irq_mode = 0; |
voices | 3209 | drivers/sound/gus_wave.c | parm = voices[voice].loop_irq_parm; |
voices | 3234 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = VMODE_HALT; |
voices | 3289 | drivers/sound/gus_wave.c | mode = voices[voice].volume_irq_mode; |
voices | 3290 | drivers/sound/gus_wave.c | voices[voice].volume_irq_mode = 0; |
voices | 3291 | drivers/sound/gus_wave.c | parm = voices[voice].volume_irq_parm; |
voices | 3307 | drivers/sound/gus_wave.c | guswave_start_note2 (voices[voice].dev_pending, voice, |
voices | 3308 | drivers/sound/gus_wave.c | voices[voice].note_pending, voices[voice].volume_pending); |
voices | 3309 | drivers/sound/gus_wave.c | if (voices[voice].kill_pending) |
voices | 3310 | drivers/sound/gus_wave.c | guswave_kill_note (voices[voice].dev_pending, voice, 0); |
voices | 3311 | drivers/sound/gus_wave.c | if (voices[voice].sample_pending >= 0) |
voices | 3313 | drivers/sound/gus_wave.c | guswave_set_instr (voices[voice].dev_pending, voice, |
voices | 3314 | drivers/sound/gus_wave.c | voices[voice].sample_pending); |
voices | 3315 | drivers/sound/gus_wave.c | voices[voice].sample_pending = -1; |
voices | 60 | drivers/sound/opl3.c | static struct voice_info voices[MAX_VOICE]; |
voices | 250 | drivers/sound/opl3.c | opl3_command (map->ioaddr, KEYON_BLOCK + map->voice_num, voices[voice].keyon_byte & ~0x20); |
voices | 252 | drivers/sound/opl3.c | voices[voice].keyon_byte = 0; |
voices | 253 | drivers/sound/opl3.c | voices[voice].bender = 0; |
voices | 254 | drivers/sound/opl3.c | voices[voice].bender_range = 200; /* 200 cents = 2 semitones */ |
voices | 255 | drivers/sound/opl3.c | voices[voice].orig_freq = 0; |
voices | 256 | drivers/sound/opl3.c | voices[voice].current_freq = 0; |
voices | 257 | drivers/sound/opl3.c | voices[voice].mode = 0; |
voices | 357 | drivers/sound/opl3.c | if (voices[voice].mode == 0) |
voices | 360 | drivers/sound/opl3.c | if (voices[voice].mode == 2) |
voices | 552 | drivers/sound/opl3.c | voices[voice].mode = voice_mode; |
voices | 556 | drivers/sound/opl3.c | freq = voices[voice].orig_freq = note_to_freq (note) / 1000; |
voices | 563 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voices | 564 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voices | 574 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voices | 782 | drivers/sound/opl3.c | if (voices[voice].mode == 4) |
voices | 840 | drivers/sound/opl3.c | voices[voice].bender = value; |
voices | 843 | drivers/sound/opl3.c | if (!(voices[voice].keyon_byte & 0x20)) |
voices | 846 | drivers/sound/opl3.c | freq = compute_finetune (voices[voice].orig_freq, voices[voice].bender, voices[voice].bender_range); |
voices | 847 | drivers/sound/opl3.c | voices[voice].current_freq = freq; |
voices | 856 | drivers/sound/opl3.c | voices[voice].keyon_byte = data; |
voices | 861 | drivers/sound/opl3.c | voices[voice].bender_range = value; |