11#include "libsnd2_internal.h"
13void SsUtAllKeyOff(s16 mode)
21 SPU_VOICE_VOLL | SPU_VOICE_VOLR | SPU_VOICE_PITCH | SPU_VOICE_WDSA | SPU_VOICE_ADSR_ADSR1 | SPU_VOICE_ADSR_ADSR2;
22 voice_attr.pitch = 0x1000;
23 voice_attr.addr = 0x5000;
24 voice_attr.adsr1 = 0x80FF;
25 voice_attr.volume.left = 0;
26 voice_attr.volume.right = 0;
27 voice_attr.adsr2 = 0x4000;
28 for ( vc_index = 0; vc_index < _SsVmMaxVoice; vc_index += 1 )
30 if ( (_snd_vmask & (1 << vc_index)) == 0 )
34 voice_struct = &_svm_voice[vc_index];
35 voice_struct->m_unk02 = 24;
36 voice_struct->m_key_stat = 0;
37 voice_struct->m_seq_sep_no = 255;
38 voice_struct->m_fake_program = 0;
39 voice_struct->m_prog = 0;
40 voice_struct->m_tone = 255;
41 voice_struct->m_voll2 = 0;
42 voice_attr.voice = 1 << vc_index;
43 SpuSetVoiceAttr(&voice_attr);
44 _svm_cur.m_voice_idx = vc_index;