Commit e133b8f6 authored by Libretro-Admin's avatar Libretro-Admin
Browse files

UPdate

parent c01692a5
...@@ -2431,12 +2431,12 @@ void SCSICD_GetCDDAValues(int16 &left, int16 &right) ...@@ -2431,12 +2431,12 @@ void SCSICD_GetCDDAValues(int16 &left, int16 &right)
#define CDDA_FILTER_NUMPHASES_SHIFT 6 #define CDDA_FILTER_NUMPHASES_SHIFT 6
#define CDDA_FILTER_NUMPHASES (1 << CDDA_FILTER_NUMPHASES_SHIFT) #define CDDA_FILTER_NUMPHASES (1 << CDDA_FILTER_NUMPHASES_SHIFT)
alignas(16) static const int16 CDDA_Filter[1 + CDDA_FILTER_NUMPHASES + 1][CDDA_FILTER_NUMCONVOLUTIONS_PADDED] = static const int16 CDDA_Filter[1 + CDDA_FILTER_NUMPHASES + 1][CDDA_FILTER_NUMCONVOLUTIONS_PADDED] =
{ {
#include "scsicd_cdda_filter.inc" #include "scsicd_cdda_filter.inc"
}; };
alignas(16) static const int16 OversampleFilter[2][0x10] = static const int16 OversampleFilter[2][0x10] =
{ {
{ -82, 217, -463, 877, -1562, 2783, -5661, 29464, 9724, -3844, 2074, -1176, 645, -323, 138, -43, }, /* sum=32768, sum_abs=59076 */ { -82, 217, -463, 877, -1562, 2783, -5661, 29464, 9724, -3844, 2074, -1176, 645, -323, 138, -43, }, /* sum=32768, sum_abs=59076 */
{ -43, 138, -323, 645, -1176, 2074, -3844, 9724, 29464, -5661, 2783, -1562, 877, -463, 217, -82, }, /* sum=32768, sum_abs=59076 */ { -43, 138, -323, 645, -1176, 2074, -3844, 9724, 29464, -5661, 2783, -1562, 877, -463, 217, -82, }, /* sum=32768, sum_abs=59076 */
...@@ -3141,7 +3141,7 @@ void SCSICD_SetCDDAVolume(double left, double right) ...@@ -3141,7 +3141,7 @@ void SCSICD_SetCDDAVolume(double left, double right)
FixOPV(); FixOPV();
} }
void SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only, const char *sname) int SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only, const char *sname)
{ {
SFORMAT StateRegs[] = SFORMAT StateRegs[] =
{ {
...@@ -3217,7 +3217,7 @@ void SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only, ...@@ -3217,7 +3217,7 @@ void SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only,
SFEND SFEND
}; };
MDFNSS_StateAction(sm, load, data_only, StateRegs, sname); int ret = MDFNSS_StateAction(sm, load, data_only, StateRegs, sname);
if(load) if(load)
{ {
...@@ -3237,4 +3237,6 @@ void SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only, ...@@ -3237,4 +3237,6 @@ void SCSICD_StateAction(StateMem* sm, const unsigned load, const bool data_only,
for(int i = 0; i < NumModePages; i++) for(int i = 0; i < NumModePages; i++)
UpdateMPCacheP(&ModePages[i]); UpdateMPCacheP(&ModePages[i]);
} }
return ret;
} }
...@@ -92,7 +92,7 @@ void SCSICD_Close(void); ...@@ -92,7 +92,7 @@ void SCSICD_Close(void);
void SCSICD_SetTransferRate(uint32_t TransferRate); void SCSICD_SetTransferRate(uint32_t TransferRate);
void SCSICD_SetCDDAVolume(double left, double right); void SCSICD_SetCDDAVolume(double left, double right);
void SCSICD_StateAction(StateMem *sm, const unsigned load, const bool data_only, const char *sname); int SCSICD_StateAction(StateMem *sm, const unsigned load, const bool data_only, const char *sname);
void SCSICD_SetDisc(bool tray_open, CDIF *cdif, bool no_emu_side_effects = false); void SCSICD_SetDisc(bool tray_open, CDIF *cdif, bool no_emu_side_effects = false);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment