Lines Matching refs:vc_ADSR
172 memset(&ht->ht_Voices[i].vc_ADSR, 0, sizeof (struct hvl_envelope));
594 voice->vc_ADSR.aFrames = Ins->ins_Envelope.aFrames;
595 …voice->vc_ADSR.aVolume = Ins->ins_Envelope.aFrames ? Ins->ins_Envelope.aVolume * 256 / voice->…
596 voice->vc_ADSR.dFrames = Ins->ins_Envelope.dFrames;
597 …voice->vc_ADSR.dVolume = Ins->ins_Envelope.dFrames ? (Ins->ins_Envelope.dVolume-Ins->ins_Envel…
598 voice->vc_ADSR.sFrames = Ins->ins_Envelope.sFrames;
599 voice->vc_ADSR.rFrames = Ins->ins_Envelope.rFrames;
600 …voice->vc_ADSR.rVolume = Ins->ins_Envelope.rFrames ? (Ins->ins_Envelope.rVolume-Ins->ins_Envel…
917 …voice->vc_ADSR.rVolume = -(voice->vc_ADSRVolume - (voice->vc_Instrument->ins_Envelope.rVolume << 8…
918 voice->vc_ADSR.rFrames = voice->vc_HardCutReleaseF;
919 voice->vc_ADSR.aFrames = voice->vc_ADSR.dFrames = voice->vc_ADSR.sFrames = 0;
929 if ( voice->vc_ADSR.aFrames )
931 voice->vc_ADSRVolume += voice->vc_ADSR.aVolume;
933 if ( --voice->vc_ADSR.aFrames <= 0 )
937 } else if ( voice->vc_ADSR.dFrames )
939 voice->vc_ADSRVolume += voice->vc_ADSR.dVolume;
941 if ( --voice->vc_ADSR.dFrames <= 0 )
945 } else if ( voice->vc_ADSR.sFrames )
947 voice->vc_ADSR.sFrames--;
948 } else if ( voice->vc_ADSR.rFrames )
950 voice->vc_ADSRVolume += voice->vc_ADSR.rVolume;
952 if ( --voice->vc_ADSR.rFrames <= 0 )