Lines Matching refs:env_counter
309 s32 env_counter; // Envelope counter member
626 #define ENV_POS (env_counter >> SCSP_ENV_LOW_BITS)
635 u32 env_counter = slot->env_counter; \
685 env_counter = SCSP_ENV_DECAY_END; \
691 env_counter += env_step; \
692 if (UNLIKELY(env_counter >= slot->env_target)) \
697 env_counter = SCSP_ENV_DECAY_START; \
703 env_counter = slot->sl_target; \
709 env_counter = SCSP_ENV_DECAY_END; \
725 slot->env_counter = env_counter; \
1039 scsp.slot[slotnum].env_counter = SCSP_ENV_DECAY_END; // Slot off in ScspReset()
1465 if (slot->env_counter >= SCSP_ENV_DECAY_END) in ScspGenerateAudioForSlot()
1717 ywrite(&check, (void *)&scsp.slot[i].env_counter, 4, 1, fp); in SoundSaveState()
1860 yread(&check, (void *)&scsp.slot[i].env_counter, 4, 1, fp); in SoundLoadState()
2324 slot.env_counter = SCSP_ENV_ATTACK_START; in ScspSlotDebugAudioSaveWav()
2366 if (slot->env_counter >= SCSP_ENV_DECAY_END) in ScspSlotDebugAudio()
2615 if (slot->env_counter < SCSP_ENV_DECAY_END) in ScspWriteWordDirect()
2626 if (slot->env_counter < SCSP_ENV_DECAY_END) in ScspWriteWordDirect()
2632 if (slot->env_counter < SCSP_ENV_DECAY_END) in ScspWriteWordDirect()
2638 if (slot->env_counter < SCSP_ENV_DECAY_END) in ScspWriteWordDirect()
2987 …slot->env_counter = SCSP_ENV_ATTACK_START; // FIXME: should this start at the current value if th… in ScspKeyOn()
3003 slot->env_counter = SCSP_ENV_DECAY_END - slot->env_counter; in ScspKeyOff()