diff options
Diffstat (limited to 'source')
-rw-r--r-- | source/apu_blargg.c | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/source/apu_blargg.c b/source/apu_blargg.c index c241ec4..b1bb258 100644 --- a/source/apu_blargg.c +++ b/source/apu_blargg.c @@ -182,8 +182,12 @@ #include <limits.h> #ifndef INLINE +#ifdef PSP +#define INLINE __attribute((force_inline)) +#else #define INLINE inline #endif +#endif #include "blargg_endian.h" #include "apu_blargg.h" @@ -3059,8 +3063,8 @@ void spc_copy_state( unsigned char** io, dsp_copy_func_t copy ) ***********************************************************************************/ #define APU_DEFAULT_INPUT_RATE 32000 -#define APU_MINIMUM_SAMPLE_COUNT 512 -#define APU_MINIMUM_SAMPLE_BLOCK 128 +#define APU_MINIMUM_SAMPLE_COUNT (512*8) +#define APU_MINIMUM_SAMPLE_BLOCK (128*8) #define APU_NUMERATOR_NTSC 15664 #define APU_DENOMINATOR_NTSC 328125 #define APU_NUMERATOR_PAL 34176 @@ -3646,4 +3650,7 @@ void S9xAPULoadState (uint8_t *block) spc_remainder = GET_LE32(ptr); } +#undef INLINE +#define INLINE static inline + #endif |