Skip to content

Commit

Permalink
STBL447 2024/07/28
Browse files Browse the repository at this point in the history
  RCSMP:PCM8の場合にmode指定が出来ていなかったのを修正
  RCSMP:PCM8の場合にfreq変更指示が来ても未対応の周波数(5以上)を指定してきたら無視するように調整
  PlayList:RCSMP:D&Dに対応
  • Loading branch information
kumatan committed Jul 27, 2024
1 parent 6491c9b commit bc065c0
Show file tree
Hide file tree
Showing 6 changed files with 24 additions and 4 deletions.
5 changes: 5 additions & 0 deletions CHANGE.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
�X�V����
STBL447 2024/07/28
RCSMP:PCM8�̏ꍇ��mode�w�肪�o���Ă��Ȃ������̂��C��
RCSMP:PCM8�̏ꍇ��freq�ύX�w�������Ă����Ή��̎��g��(5�ȏ�)���w�肵�Ă����疳������悤�ɒ���
PlayList:RCSMP:D&D�ɑΉ�

STBL446 2024/07/27 2nd
mp3:APIC�^�O�ɑΉ�

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 "STBL445"
!define VERSION "STBL446"
!define PUBLISHER "Kumata"
!define PACKAGE "${NAME} ${VERSION}"
11 changes: 9 additions & 2 deletions MDPlayer/MDPlayerx64/Driver/RCP/RCS.cs
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,14 @@ private void rcsControl(MIDITrack trk, MIDIEvent eve)
switch (rcsControlMode)
{
case 0://周波数変更
pcmInfos[rcsControlNoteNumber].freq = val;
if (pcm8type == 0)
{
if (val < 5) pcmInfos[rcsControlNoteNumber].freq = val;
}
else
{
pcmInfos[rcsControlNoteNumber].freq = val;
}
break;
case 1://パンポット変更
pcmInfos[rcsControlNoteNumber].pan = val;
Expand Down Expand Up @@ -401,7 +408,7 @@ void efNoteOn(MIDITrack trk, MIDIEvent eve)
(((eve.MIDIMessage[2] + 1) / 8) << 16) |
(pcmInfos[key].freq << 8) |
(pcmInfos[key].pan);
if (pcm8type == 0) opmPCM?.x68sound[0].X68Sound_Pcm8_Out(ch, null, (uint)pcmInfos[key].ptr, pcmInfos[key].freq, pcmInfos[key].length);//指定チャンネル発音開始
if (pcm8type == 0) opmPCM?.x68sound[0].X68Sound_Pcm8_Out(ch, null, (uint)pcmInfos[key].ptr, mode, pcmInfos[key].length);//指定チャンネル発音開始
else pcm8pp?.KeyOn(ch, (uint)pcmInfos[key].ptr, mode, pcmInfos[key].length);//指定チャンネル発音開始
pcm8St[ch].tablePtr = (uint)pcmInfos[key].ptr;
pcm8St[ch].mode = (uint)mode;
Expand Down
8 changes: 8 additions & 0 deletions MDPlayer/MDPlayerx64/PlayList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -438,6 +438,9 @@ private void AddFileLoop(ref int index, Music mc, object entry = null)
case EnmFileFormat.RCP:
AddFileRCP(ref index, mc, entry);
break;
case EnmFileFormat.RCS:
AddFileRCS(ref index, mc, entry);
break;
case EnmFileFormat.S98:
AddFileS98(ref index, mc, entry);
break;
Expand Down Expand Up @@ -668,6 +671,11 @@ private void AddFileRCS(Music mc, object entry = null)
AddFilexxx(mc, entry);
}

private void AddFileRCS(ref int index, Music mc, object entry = null)
{
AddFilexxx(ref index, mc, entry);
}

private void AddFileS98(Music mc, object entry = null)
{
AddFilexxx(mc, entry);
Expand Down
2 changes: 1 addition & 1 deletion MDPlayer/MDPlayerx64/form/SYS/frmPlayList.cs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ public partial class frmPlayList : Form
private Random rand = new System.Random();
private bool IsInitialOpenFolder = true;

private string[] sext = ".vgm;.vgz;.zip;.lzh;.nrd;.xgm;.xgz;.zgm;.s98;.nsf;.hes;.sid;.mnd;.mgs;.bgm;.msd;.mdr;.mdx;.mub;.muc;.m;.m2;.mz;.mml;.mpi;.mvi;.mzi;.opi;.ovi;.ozi;.mid;.zms;.zmd;.rcp;.wav;.mp3;.aiff;.m3u".Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);
private string[] sext = ".vgm;.vgz;.zip;.lzh;.nrd;.xgm;.xgz;.zgm;.s98;.nsf;.hes;.sid;.mnd;.mgs;.bgm;.msd;.mdr;.mdx;.mub;.muc;.m;.m2;.mz;.mml;.mpi;.mvi;.mzi;.opi;.ovi;.ozi;.mid;.zms;.zmd;.rcp;.rcs;.wav;.mp3;.aiff;.m3u".Split(new string[] { ";" }, StringSplitOptions.RemoveEmptyEntries);

public frmPlayList(frmMain frm)
{
Expand Down

0 comments on commit bc065c0

Please sign in to comment.