2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-21 18:59:34 +00:00

THP audio fix

This commit is contained in:
Jack Andersen
2016-03-09 10:03:35 -10:00
parent 5f7c6769e3
commit f53bdcc5bd
5 changed files with 36 additions and 36 deletions

View File

@@ -7,10 +7,10 @@ extern "C" {
#include <stdint.h>
static inline short DSPSampClamp(int val)
static inline short DSPSampClamp(int32_t val)
{
if (val < -32768) val = -32768;
if (val > 32767) val = 32767;
else if (val > 32767) val = 32767;
return val;
}