forked from TnA-Plastic/FreeMcBoot
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathsjpcm.h
56 lines (46 loc) · 1.62 KB
/
sjpcm.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
/*
-----------------------------------------------------------------------
sjpcm.h - SjPCM EE-side prototypes. (c) Nick Van Veen (aka Sjeep), 2002
-----------------------------------------------------------------------
This library is free software; you can redistribute it and/or
modify it under the terms of the GNU Lesser General Public
License as published by the Free Software Foundation; either
version 2.1 of the License, or (at your option) any later version.
This library is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
Lesser General Public License for more details.
You should have received a copy of the GNU Lesser General Public
License along with this library; if not, write to the Free Software
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*/
#ifndef _SJPCM_H
#define _SJPCM_H
#ifdef __cplusplus
extern "C" {
#endif
#define SJPCM_IRX 0xB0110C5
#define SJPCM_PUTS 0x01
#define SJPCM_INIT 0x02
#define SJPCM_PLAY 0x03
#define SJPCM_PAUSE 0x04
#define SJPCM_SETVOL 0x05
#define SJPCM_ENQUEUE 0x06
#define SJPCM_CLEARBUFF 0x07
#define SJPCM_QUIT 0x08
#define SJPCM_GETAVAIL 0x09
#define SJPCM_GETBUFFD 0x10
void SjPCM_Puts(char *format, ...);
int SjPCM_Init(int sync);
void SjPCM_Enqueue(short *left, short *right, int size, int wait);
void SjPCM_Play();
void SjPCM_Pause();
void SjPCM_Setvol(unsigned int volume);
void SjPCM_Clearbuff();
int SjPCM_Available();
int SjPCM_Buffered();
void SjPCM_Quit();
#ifdef __cplusplus
}
#endif
#endif // _SJPCM_H