PS2SDK
PS2 Homebrew Libraries
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ut_rdep.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 SsUtSetReverbDepth(s16 ldepth, s16 rdepth)
14{
15 _svm_rattr.mask = SPU_REV_DEPTHL | SPU_REV_DEPTHR;
16 _svm_rattr.depth.left = (s16)(0x7FFF * ldepth) / 127;
17 _svm_rattr.depth.right = (s16)(0x7FFF * rdepth) / 127;
18 SpuSetReverbModeParam(&_svm_rattr);
19}