summaryrefslogtreecommitdiff
path: root/audio/stymulator/files/patch-stsoundlib_YmMusic.h
blob: eb34d1ea468ca52189bc134c57deb4590ea31802 (plain) (blame)
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
--- stsoundlib/YmMusic.h.orig	2016-07-26 16:04:42 UTC
+++ stsoundlib/YmMusic.h
@@ -38,8 +38,6 @@
 #include "Ymload.h"
 #include "digidrum.h"
 
-#define	MAX_DIGIDRUM	128
-
 #define	YMTPREC		16
 #define	MAX_VOICE	8
 #define	PC_DAC_FREQ	44100
@@ -143,7 +141,7 @@ public:
 	int		getAttrib(void);
 	void	getMusicInfo(ymMusicInfo_t *pInfo);
 	void	setLoopMode(ymbool bLoop);
-	char	*getLastError(void);
+	const char	*getLastError(void);
 	int		 readYmRegister(ymint reg)		{ return ymChip.readRegister(reg); }
 
 //-------------------------------------------------------------
@@ -159,7 +157,7 @@ private:
 
 	void	setPlayerRate(int rate);
 	void	setAttrib(int _attrib);
-	void	setLastError(char *pError);
+	void	setLastError(const char *pError);
 	ymu8 *depackFile(void);
 	ymbool	deInterleave(void);
 	void	readYm6Effect(ymu8 *pReg,int code,int prediv,int count);
@@ -168,7 +166,7 @@ private:
 
 
 	CYm2149Ex	ymChip;
-	char	*pLastError;
+	const char	*pLastError;
 	ymFile_t	songType;
 	int		nbFrame;
 	int		loopFrame;