Skip to content

Commit

Permalink
OPNA: OPNA拡張モード送信
Browse files Browse the repository at this point in the history
  • Loading branch information
kuma committed Aug 26, 2018
1 parent 63a12ec commit 9f4a0e3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion mml2vgm/Core/clsVgm.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6008,7 +6008,7 @@ private void MakeHeader()

if (i != 0) dat[0x6f] |= 0x40;
}

if (segapcm[i].use)
{
for (int ch = 0; ch < segapcm[i].ChMax; ch++)
Expand Down Expand Up @@ -6071,6 +6071,9 @@ private void MakeHeader()
ym2608[i].lstPartWork[ch].volume = 0;
}

//Use OPNA mode
OutData(ym2608[i].lstPartWork[0].port0, 0x29, 0x82);
OutData(ym2608[i].lstPartWork[0].port1, 0x29, 0x82);
//ADPCM Reset
OutData(ym2608[i].lstPartWork[0].port1, 0x10, 0x17);
OutData(ym2608[i].lstPartWork[0].port1, 0x10, 0x80);
Expand Down

0 comments on commit 9f4a0e3

Please sign in to comment.