PS2SDK
PS2 Homebrew Libraries
ssend.c
1 /*
2 # _____ ___ ____ ___ ____
3 # ____| | ____| | | |____|
4 # | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5 #-----------------------------------------------------------------------
6 # Copyright ps2dev - http://www.ps2dev.org
7 # Licenced under Academic Free License version 2.0
8 # Review ps2sdk README & LICENSE files for further details.
9 */
10 
11 #include "libsnd2_internal.h"
12 
13 void SsEnd(void)
14 {
15 #ifndef LIB_1300
16  if ( !_snd_seq_tick_env.m_manual_tick )
17  {
18  _snd_seq_tick_env.m_unk11 = 0;
19  if ( _snd_seq_tick_env.m_alarm_tick != 127 )
20  {
22  if ( _snd_seq_tick_env.m_vsync_tick )
23  {
24  ReleaseVblankHandler(0, _SsTrapIntrProcIOP);
25  _snd_seq_tick_env.m_vsync_tick = 0;
26  }
27  else if ( _snd_seq_tick_env.m_alarm_tick )
28  {
29  CancelAlarm((unsigned int (*)(void *))_SsTrapIntrProcIOP, &_snd_seq_interval);
30  }
31  else
32  {
33  ReleaseVblankHandler(0, _SsTrapIntrProcIOP);
34  _snd_seq_tick_env.m_vsync_callback = 0;
35  }
36  CpuEnableIntr();
37  _snd_seq_tick_env.m_alarm_tick = 127;
38  }
39  }
40 #endif
41 }
CpuDisableIntr
int CpuDisableIntr()
Definition: intrman.c:228
CpuEnableIntr
int CpuEnableIntr()
Definition: intrman.c:240