PS2SDK
PS2 Homebrew Libraries
Loading...
Searching...
No Matches
spu.h
Go to the documentation of this file.
1/*
2# _____ ___ ____ ___ ____
3# ____| | ____| | | |____|
4# | ___| |____ ___| ____| | \ PS2DEV Open Source Project.
5#-----------------------------------------------------------------------
6# Copyright 2005, ps2dev - http://www.ps2dev.org
7# Licenced under GNU Library General Public License version 2
8*/
9
15#ifndef __SPU_H__
16#define __SPU_H__
17
18#define MAX_VOLUME 0x3fff
19
20/* double buffer for spu. Must be twice the size of two channels,
21 * 512 bytes each. (2 * 2 * 512 = 2048)
22 */
23#define SPU_BUF_SZ 2048
24
25/* SD constants */
26
27#define SD_CORE_0 0
28#define SD_CORE_1 1
29
30#define SD_INIT_COLD 0
31
32#define SD_VOICE_KEYON (0x15<<8)
33#define SD_VOICE_KEYOFF (0x16<<8)
34#define SD_VOICE_START ((0x20<<8)|(0x1<<6))
35
36#endif