| カテゴリ | 重要度 | ステータス | 解決状況 | 登録日時 | 最終更新 |
|---|---|---|---|---|---|
サウンド | 低 | 仮承認 | 未処理 | 2009-02-20 13:38 | 2009-03-09 02:03 |
| テスター | chowell | 担当者 |   | ソース | |
| バージョン | 0.129u4 | 発生バージョン | 修正バージョン | ||
| 修正コミット | プルリク | ||||
| フラグ | |||||
| セット | DISCRETE | ||||
| セット詳細 | |||||
| 概 要 | DISC_MIXER_IS_OP_AMPの出力電圧について、vRafのオフセットが反映されない。 | ||||
| 詳 細 | For the DISC_MIXER_IS_OP_AMP (no rI) version of DISCRETE_MIXER, if vRef is not zero, the output voltage will not be offset by vRef as it should. For reference, the general circuit diagram of a DISC_MIXER_IS_OP_AMP (no rI) is:
cF
.----||---.
| |
rNode[0] r[0] c[0] | rF |
IN0 >--zzzz------zzzz----||---. +---ZZZZ--+
| | |
rNode[1] r[1] c[1] | | |\ |
IN1 >--zzzz------zzzz----||---+--------+ | \ |
. . . . | '--|- \ | cAmp
. . . . | | >--+---||-----> Netlist Node
. . . . | .--|+ /
. rNode[7] r[7] c[7] | | | /
IN7 >--zzzz------zzzz----||---' | |/
|
vRef >----------------------------------'
In DISCRETE_STEP(dst_mixer) within emu/sound/disc_mth.c, the op-amp's output voltage for a DISC_MIXER_IS_OP_AMP is computed as follows (line 1138; all line numbers are for 129u4):
v = i * ((type == DISC_MIXER_IS_OP_AMP) ? info->rF : r_total);
This determines the op-amp output voltage v using the fact that the feedback current across rF must equal the total net reverse current into the input lines. The only problem is that it assumes that vRef = 0 V. Thus v_ref should be added to v for the DISC_MIXER_IS_OP_AMP case. Likewise, line 1152:
v = context->v_cap_f;
sets the op-amp output voltage v when the op-amp has a capacitor cF, based on the fact that v must be the same as the voltage across cF. Again this assumes vRef = 0 V, so v_ref needs to be added here as well. Assuming these changes are made, the comment on line 1013 should also be updated to match. I'm not sure how serious this discrepancy is, since the result is only a DC offset, so normally there would be no audible effect. But you never know when somebody might use a DISC_MIXER_IS_OP_AMP in a way where the DC level would matter, such as if it were passed to the input of some other circuit. Anyway, since the output voltage appears to be correctly offset for DISC_MIXER_IS_OP_AMP_WITH_RI, it seems that the module should at least be consistent. For reference, the following mixer descriptions use a DISC_MIXER_IS_OP_AMP without rI with a nonzero vRef: atarifb_mixer, abaseb_mixer, bsktball_mixer, firetrk_mixer, bosco_filter_mixer, galaga_final_mixer. These are in mame/audio/{atarifb.c,bsktball.c,firetrk.c,galaga.c}. | ||||
| 再現手順 | |||||
| 追加情報 | |||||
| 添付ファイル | |||||