freebsd-ports/audio/stymulator/files/patch-stsoundlib__YmMusic.h
2010-04-23 12:06:32 +00:00

38 lines
1 KiB
C

--- ./stsoundlib/YmMusic.h.orig 2010-04-23 13:49:47.000000000 +0200
+++ ./stsoundlib/YmMusic.h 2010-04-23 13:50:07.000000000 +0200
@@ -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 @@
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 @@
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 @@
CYm2149Ex ymChip;
- char *pLastError;
+ const char *pLastError;
ymFile_t songType;
int nbFrame;
int loopFrame;