Skip to content

Commit

Permalink
STBL480 2024/11/08 3rd
Browse files Browse the repository at this point in the history
  Driver:AY:フレームカウンターのカウントアップができていなかった
  PianoRoll:Driver:AY追加
  • Loading branch information
kumatan committed Nov 8, 2024
1 parent 2c2c83a commit 90a0e94
Show file tree
Hide file tree
Showing 5 changed files with 24 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
�X�V����
STBL480 2024/11/08 3rd
Driver:AY:�t���[���J�E���^�[�̃J�E���g�A�b�v���ł��Ă��Ȃ�����
PianoRoll:Driver:AY�lj�

STBL479 2024/11/08 2nd
PianoRoll:Driver:ZMUSIC�lj�

Expand Down
Binary file not shown.
2 changes: 1 addition & 1 deletion MDPlayer/MDPlayer_InstKit/02info.nsh
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
!define NAME "MDPlayer"
!define VERSION "STBL478"
!define VERSION "STBL479"
!define PUBLISHER "Kumata"
!define PACKAGE "${NAME} ${VERSION}"
19 changes: 18 additions & 1 deletion MDPlayer/MDPlayerx64/Audio.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2621,6 +2621,16 @@ public static bool Play(Setting setting)
// driverReal = new Driver.SID.sid();
// driverReal.setting = setting;
//}

DriverPianoRoll = null;
if (setting.pianoRoll.usePianoRoll)
{
DriverPianoRoll = new Driver.AY.AY
{
setting = setting
};
}

return AyPlay(setting);
}

Expand Down Expand Up @@ -2653,7 +2663,7 @@ public static bool Play(Setting setting)
setting = setting
};
((Vgm)DriverPianoRoll).dacControl.chipRegister = chipRegister;
((Vgm)DriverPianoRoll).dacControl.model = EnmModel.RealModel;
((Vgm)DriverPianoRoll).dacControl.model = EnmModel.PianoRollModel;
}

return VgmPlay(setting);
Expand Down Expand Up @@ -2844,6 +2854,13 @@ public static bool AyPlay(Setting setting)
, (uint)(setting.outputDevice.SampleRate * setting.LatencySCCI / 1000)
, (uint)(setting.outputDevice.SampleRate * setting.outputDevice.WaitTime / 1000))) return false;
}
if (DriverPianoRoll != null)
{
((Driver.AY.AY)DriverPianoRoll).song = (byte)SongNo;
if (!DriverPianoRoll.init(vgmBuf, chipRegister, EnmModel.PianoRollModel, new EnmChip[] { EnmChip.AY8910 }
, (uint)(setting.outputDevice.SampleRate * setting.LatencySCCI / 1000)
, (uint)(setting.outputDevice.SampleRate * setting.outputDevice.WaitTime / 1000))) return false;
}

//Play

Expand Down
5 changes: 1 addition & 4 deletions MDPlayer/MDPlayerx64/Driver/AY/AY.cs
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,7 @@ public override void oneFrameProc()
oneFrame();
Counter++;
}
else
{
vgmFrameCounter++;
}
vgmFrameCounter++;
}
}
catch (Exception ex)
Expand Down

0 comments on commit 90a0e94

Please sign in to comment.