-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1b766c6
commit c15be73
Showing
61 changed files
with
6,524 additions
and
3,332 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
diff -NudrbE -U3 -x CVS libmodplug-0.7/src/fastmix.cpp libmodplug-clipfix/src/fastmix.cpp | ||
--- libmodplug-0.7/src/fastmix.cpp 2005-05-23 20:11:45.000000000 +0100 | ||
+++ libmodplug-clipfix/src/fastmix.cpp 2005-07-02 16:12:58.792124928 +0100 | ||
@@ -2230,6 +2230,7 @@ | ||
#define MIXING_LIMITMAX (0x08100000) | ||
#define MIXING_LIMITMIN (-MIXING_LIMITMAX) | ||
|
||
+#ifdef MSC_VER | ||
__declspec(naked) UINT MPPASMCALL X86_AGC(int *pBuffer, UINT nSamples, UINT nAGC) | ||
//------------------------------------------------------------------------------- | ||
{ | ||
@@ -2267,6 +2268,28 @@ | ||
} | ||
|
||
#pragma warning (default:4100) | ||
+#else | ||
+// Version for GCC | ||
+UINT MPPASMCALL X86_AGC(int *pBuffer, UINT nSamples, UINT nAGC) | ||
+{ | ||
+ int x; | ||
+ | ||
+ while(nSamples) | ||
+ { | ||
+ x = ((long long int)(*pBuffer) * nAGC) >> AGC_PRECISION; | ||
+ | ||
+ if((x < MIXING_LIMITMIN) || (x > MIXING_LIMITMAX)) | ||
+ nAGC--; | ||
+ | ||
+ *pBuffer = x; | ||
+ | ||
+ pBuffer++; | ||
+ nSamples--; | ||
+ } | ||
+ | ||
+ return nAGC; | ||
+} | ||
+#endif | ||
|
||
void CSoundFile::ProcessAGC(int count) | ||
//------------------------------------ | ||
diff -NudrbE -U3 -x CVS libmodplug-0.7/src/sndfile.cpp libmodplug-clipfix/src/sndfile.cpp | ||
--- libmodplug-0.7/src/sndfile.cpp 2005-05-23 20:11:47.000000000 +0100 | ||
+++ libmodplug-clipfix/src/sndfile.cpp 2005-07-02 16:11:29.679672080 +0100 | ||
@@ -1541,11 +1541,11 @@ | ||
// Adjust end of sample | ||
if (pIns->uFlags & CHN_STEREO) | ||
{ | ||
- pSample[len*2+6] = pSample[len*2+4] = pSample[len*2+2] = pSample[len*2] = pSample[len*2-2]; | ||
- pSample[len*2+7] = pSample[len*2+5] = pSample[len*2+3] = pSample[len*2+1] = pSample[len*2-1]; | ||
+ pSample[len*2+6] = pSample[len*2+4] = pSample[len*2+2] = pSample[len*2] = 0; | ||
+ pSample[len*2+7] = pSample[len*2+5] = pSample[len*2+3] = pSample[len*2+1] = 0; | ||
} else | ||
{ | ||
- pSample[len+4] = pSample[len+3] = pSample[len+2] = pSample[len+1] = pSample[len] = pSample[len-1]; | ||
+ pSample[len+4] = pSample[len+3] = pSample[len+2] = pSample[len+1] = pSample[len] = 0; | ||
} | ||
if ((pIns->uFlags & (CHN_LOOP|CHN_PINGPONGLOOP|CHN_STEREO)) == CHN_LOOP) | ||
{ | ||
@@ -1593,11 +1593,12 @@ | ||
// Adjust end of sample | ||
if (pIns->uFlags & CHN_STEREO) | ||
{ | ||
- pSample[len*2+6] = pSample[len*2+4] = pSample[len*2+2] = pSample[len*2] = pSample[len*2-2]; | ||
- pSample[len*2+7] = pSample[len*2+5] = pSample[len*2+3] = pSample[len*2+1] = pSample[len*2-1]; | ||
+ pSample[len*2+6] = pSample[len*2+4] = pSample[len*2+2] = pSample[len*2] = 0; | ||
+ pSample[len*2+7] = pSample[len*2+5] = pSample[len*2+3] = pSample[len*2+1] = 0; | ||
+ | ||
} else | ||
{ | ||
- pSample[len+4] = pSample[len+3] = pSample[len+2] = pSample[len+1] = pSample[len] = pSample[len-1]; | ||
+ pSample[len+4] = pSample[len+3] = pSample[len+2] = pSample[len+1] = pSample[len] = 0; | ||
} | ||
if ((pIns->uFlags & (CHN_LOOP|CHN_PINGPONGLOOP|CHN_STEREO)) == CHN_LOOP) | ||
{ |
12 changes: 12 additions & 0 deletions
12
contrib/libmodplug-0.7-increase-frequency-upper-limit.diff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff -Nudr -U3 libmodplug-0.7/src/libmodplug/sndfile.h libmodplug/src/libmodplug/sndfile.h | ||
--- libmodplug-0.7/src/libmodplug/sndfile.h 2005-07-06 18:59:32.842085856 +0100 | ||
+++ libmodplug/src/libmodplug/sndfile.h 2005-07-06 18:48:45.026568784 +0100 | ||
@@ -22,7 +22,7 @@ | ||
|
||
#define MOD_AMIGAC2 0x1AB | ||
#define MAX_SAMPLE_LENGTH 16000000 | ||
-#define MAX_SAMPLE_RATE 50000 | ||
+#define MAX_SAMPLE_RATE 192000 | ||
#define MAX_ORDERS 256 | ||
#define MAX_PATTERNS 240 | ||
#define MAX_SAMPLES 240 |
Oops, something went wrong.