(branch makes more sense like this)

This commit is contained in:
Michaël Banaan Ananas 2010-05-29 20:12:49 +00:00
parent 5aa040773b
commit 793e60940e
2 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ static STREAM_UPDATE( flower_update_mono )
voice->oneshotplaying = 0; voice->oneshotplaying = 0;
} }
if (voice->oneshotplaying) else
{ {
// *mix++ += ((w[offs] - 0x80) * v) / 16; // *mix++ += ((w[offs] - 0x80) * v) / 16;
*mix++ += sound_rom2[v*256 + w[offs]] - 0x80; *mix++ += sound_rom2[v*256 + w[offs]] - 0x80;
@ -211,7 +211,7 @@ DEVICE_GET_INFO( flower_sound )
/* --- the following bits of info are returned as NULL-terminated strings --- */ /* --- the following bits of info are returned as NULL-terminated strings --- */
case DEVINFO_STR_NAME: strcpy(info->s, "Flower Custom"); break; case DEVINFO_STR_NAME: strcpy(info->s, "Flower Custom"); break;
case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;
} }
} }

View File

@ -124,7 +124,7 @@ static STREAM_UPDATE( wiping_update_mono )
voice->oneshotplaying = 0; voice->oneshotplaying = 0;
} }
if (voice->oneshotplaying) else
{ {
/* use full byte, first the high 4 bits, then the low 4 bits */ /* use full byte, first the high 4 bits, then the low 4 bits */
if (offs & 1) if (offs & 1)
@ -204,7 +204,7 @@ DEVICE_GET_INFO( wiping_sound )
/* --- the following bits of info are returned as NULL-terminated strings --- */ /* --- the following bits of info are returned as NULL-terminated strings --- */
case DEVINFO_STR_NAME: strcpy(info->s, "Wiping Custom"); break; case DEVINFO_STR_NAME: strcpy(info->s, "Wiping Custom"); break;
case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break; case DEVINFO_STR_SOURCE_FILE: strcpy(info->s, __FILE__); break;
} }
} }