PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
cc_11.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
13void _SsContExpression(s16 sep_no, s16 seq_no, u8 control_value)
14{
15 libsnd2_sequence_struct_t *score_struct;
16 int m_channel_idx;
17
18 score_struct = &_ss_score[sep_no][seq_no];
19 m_channel_idx = score_struct->m_channel_idx;
20 _SsVmSetProgVol((char)score_struct->m_vab_id, (u8)score_struct->m_programs[m_channel_idx], control_value);
21 _SsVmSetVol(
22 sep_no | (seq_no << 8),
23 (char)score_struct->m_vab_id,
24 (u8)score_struct->m_programs[m_channel_idx],
25 score_struct->m_vol[m_channel_idx],
26 (u8)score_struct->m_panpot[m_channel_idx]);
27 score_struct->m_delta_value = _SsReadDeltaValue(sep_no, seq_no);
28}