Skip to content

Commit

Permalink
leftovers, NFC
Browse files Browse the repository at this point in the history
  • Loading branch information
toxieainc committed Feb 1, 2024
1 parent c7fe890 commit 66be20f
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 9 deletions.
4 changes: 3 additions & 1 deletion release/VPMAlias.txt
Expand Up @@ -57,4 +57,6 @@ freefallp,freefall
beetljui,ironmaid
stestc, stest
startreb4,startreb
T1D_123_riccione,T1D_123
T1D_123_riccione,T1D_123
deathproof,mousn_l4
twd_156ld,twd_156h
2 changes: 1 addition & 1 deletion src/windows/sound.c
Expand Up @@ -400,7 +400,7 @@ int osd_update_audio_stream(INT16 *buffer)
samplei = 32767;
else
#ifdef __GNUC__
samplei = (INT16)(sample + .5);
samplei = (INT16)(sample + .5f);
#else
samplei = (INT16)(lrintf(sample));
#endif
Expand Down
2 changes: 1 addition & 1 deletion src/wpc/sam.c
Expand Up @@ -1277,7 +1277,7 @@ static MACHINE_INIT(sam) {
core_set_pwm_output_type(CORE_MODOUT_SOL0 + 25 - 1, 8, CORE_MODOUT_BULB_89_20V_DC_WPC);
}
else if (strncasecmp(gn, "bdk_294", 7) == 0) { // Batman The Dark Knight
int flashers[] = { 18, 20, 21, 22, 24, 26, 28, 31 };
static const int flashers[] = { 18, 20, 21, 22, 24, 26, 28, 31 };
for (int i = 0; i < sizeof(flashers) / sizeof(int); i++)
core_set_pwm_output_type(CORE_MODOUT_SOL0 + flashers[i] - 1, 1, CORE_MODOUT_BULB_89_20V_DC_WPC);
core_set_pwm_output_type(CORE_MODOUT_LAMP0 + 29, 1, CORE_MODOUT_NONE);
Expand Down
12 changes: 6 additions & 6 deletions src/wpc/wpc.c
Expand Up @@ -1267,7 +1267,7 @@ static MACHINE_INIT(wpc) {
core_set_pwm_output_type(CORE_MODOUT_SOL0 + 17 - 1, 8, CORE_MODOUT_BULB_89_20V_DC_WPC);
}
else if ((strncasecmp(gn, "hd_l3", 5) == 0) // Harley Davidson
|| (strncasecmp(gn, "che_cho", 7) == 0)) { // Cheech & Chong: Road-Trip'pin
|| (strncasecmp(gn, "che_cho", 7) == 0)) { // Cheech & Chong: Road-Trip'pin
static const int flashers[] = { 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 28 };
for (int i = 0; i < sizeof(flashers) / sizeof(int); i++)
core_set_pwm_output_type(CORE_MODOUT_SOL0 + flashers[i] - 1, 1, CORE_MODOUT_BULB_89_20V_DC_WPC);
Expand Down Expand Up @@ -1367,12 +1367,12 @@ static MACHINE_INIT(wpc) {
core_set_pwm_output_type(CORE_MODOUT_SOL0 + flashers[i] - 1, 1, CORE_MODOUT_BULB_89_20V_DC_WPC);
}
else if (strncasecmp(gn, "taf_l5", 6) == 0) { // The Addams Family
static const int flashers[] = { 17, 18, 19, 20, 21, 22 };
for (int i = 0; i < sizeof(flashers) / sizeof(int); i++)
static const int flashers[] = { 17, 18, 19, 20, 21, 22 };
for (int i = 0; i < sizeof(flashers) / sizeof(int); i++)
core_set_pwm_output_type(CORE_MODOUT_SOL0 + flashers[i] - 1, 1, CORE_MODOUT_BULB_89_20V_DC_WPC);
// Playfield magnets, they are pulsed with 64ms pulses over a 524ms period
// core_set_pwm_output_type(CORE_MODOUT_SOL0 + 16 - 1, 1, CORE_MODOUT_MAGNET);
// core_set_pwm_output_type(CORE_MODOUT_SOL0 + 23 - 1, 2, CORE_MODOUT_MAGNET);
// Playfield magnets, they are pulsed with 64ms pulses over a 524ms period
// core_set_pwm_output_type(CORE_MODOUT_SOL0 + 16 - 1, 1, CORE_MODOUT_MAGNET);
// core_set_pwm_output_type(CORE_MODOUT_SOL0 + 23 - 1, 2, CORE_MODOUT_MAGNET);
}
else if (strncasecmp(gn, "tafg_lx3", 8) == 0) { // The Addams Family Gold Edition
static const int flashers[] = { 17, 18, 19, 20, 21, 22 };
Expand Down

0 comments on commit 66be20f

Please sign in to comment.