DCDecomp
A decompilation of Dark Cloud for the PlayStation 2
Loading...
Searching...
No Matches
libsdr.h
1
#pragma once
2
3
/* Commands sceSdRemote forwards to the IOP sound library. */
4
#define rSdInit 0x8000
5
#define rSdSetParam 0x8010
6
#define rSdSetSwitch 0x8030
7
#define rSdSetAddr 0x8050
8
#define rSdSetCoreAttr 0x8070
9
#define rSdSetEffectAttr 0x8130
10
11
/* Voice switch, parameter and address registers, combined with a core number. */
12
#define SD_S_KOFF (0x16 << 8)
13
#define SD_P_MVOLL ((0x09 << 8) + (0x01 << 7))
14
#define SD_P_MVOLR ((0x0A << 8) + (0x01 << 7))
15
#define SD_P_EVOLL ((0x0B << 8) + (0x01 << 7))
16
#define SD_P_EVOLR ((0x0C << 8) + (0x01 << 7))
17
#define SD_A_EEA (0x1D << 8)
18
19
/* Core attributes, combined with a core number. */
20
#define SD_C_EFFECT_ENABLE (1 << 1)
21
#define SD_C_SPDIF_MODE (5 << 1)
22
23
/* Values of the attributes above. */
24
#define SD_SPDIF_COPY_PROHIBIT 0x80
25
#define SD_REV_MODE_CLEAR_WA 0x100
26
30
struct
sceSdEffectAttr
{
31
int
core
;
32
int
mode
;
33
short
depth_L
;
34
short
depth_R
;
35
int
delay
;
36
int
feedback
;
37
};
38
39
#ifdef __cplusplus
40
extern
"C"
{
41
#endif
42
46
int
sceSdRemoteInit(
void
);
47
51
int
sceSdRemote(
int
arg,
int
command, ...);
52
53
#ifdef __cplusplus
54
}
55
#endif
sceSdEffectAttr
Definition
libsdr.h:30
sceSdEffectAttr::mode
int mode
Definition
libsdr.h:32
sceSdEffectAttr::core
int core
Definition
libsdr.h:31
sceSdEffectAttr::depth_R
short depth_R
Definition
libsdr.h:34
sceSdEffectAttr::depth_L
short depth_L
Definition
libsdr.h:33
sceSdEffectAttr::delay
int delay
Definition
libsdr.h:35
sceSdEffectAttr::feedback
int feedback
Definition
libsdr.h:36
ps2
include
sce
libsdr.h
Generated by
1.9.8