[ オリジナルレポート ]

BugID: #03616

カテゴリ 重要度 ステータス 解決状況 登録日時 最終更新
インターフェイス解決済み修正済み2009-12-29 18:282017-06-23 00:22
 
テスターemuman担当者 ソース
バージョン0.135u4発生バージョン修正バージョン
修正コミットプルリク
フラグ
セット
セット詳細
 
概 要スライダコントロールで設定した値の少数点以下が正しく保存されない。
詳 細run captcomm for example. in Slider Controls, adjust speaker YM2151 Ch0 volumn to 0.31, quit MAME. then start MAME again, try to set it back to default value, i.e., 0.35.

you will have something like this in cfg\captcomm.cfg, which actually should be removed

<mixer>
<channel index="0" defvol="0.350000" newvol="0.350000" />
</mixer>
再現手順 
追加情報to fix it, apply the patch to emu/sound.c

float defvol = sound_get_default_gain(machine, mixernum);
float newvol = sound_get_user_gain(machine, mixernum);

- if (defvol != newvol)
+ if (floor((defvol - newvol) * 1000.0f + 0.5f) != 0)
{
xml_data_node *channelnode = xml_add_child(parentnode, "channel", NULL);
if (channelnode != NULL)
 
添付ファイル