diff options
author | Derrick Renaud <derrickr@mamedev.org> | 2009-10-05 01:18:30 +0000 |
---|---|---|
committer | Derrick Renaud <derrickr@mamedev.org> | 2009-10-05 01:18:30 +0000 |
commit | ba7640df3e3885a6d88a93cf93b56d6dd8cefbc0 (patch) | |
tree | 48ce4339c41ddd4e47cdfa69c9309db1accc3871 /src/emu | |
parent | 82a44843456c425412f6758644a8bdc1422c63ae (diff) |
Space Walk - started Springboard Miss sound
Diffstat (limited to 'src/emu')
-rw-r--r-- | src/emu/sound/disc_flt.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/emu/sound/disc_flt.c b/src/emu/sound/disc_flt.c index b1ebe899775..e1175c4c16b 100644 --- a/src/emu/sound/disc_flt.c +++ b/src/emu/sound/disc_flt.c @@ -503,7 +503,10 @@ static DISCRETE_RESET(dst_op_amp_filt) context->exponentC2 = RC_CHARGE_EXP(context->rTotal * info->c2); break; case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M | DISC_OP_AMP_IS_NORTON: - context->rTotal = 1.0 / (1.0 / info->r1 + 1.0 / info->r2); + if (info->r2 == 0) + context->rTotal = info->r1; + else + context->rTotal = RES_2_PARALLEL(info->r1, info->r2); case DISC_OP_AMP_FILTER_IS_BAND_PASS_1M: { double fc = 1.0 / (2 * M_PI * sqrt(context->rTotal * info->rF * info->c1 * info->c2)); |