Skip to content

Commit

Permalink
Update SerdesNet dependency to 1.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
csinkers committed Jul 4, 2020
1 parent 364c9db commit b6dc05f
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 8 deletions.
6 changes: 6 additions & 0 deletions build_nuget.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
@echo off
dotnet clean -c Debug
dotnet clean -c Release
rm -rf .\bin
dotnet build -c Release
dotnet pack -c Release
11 changes: 6 additions & 5 deletions src/ADLMidi.NET.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,19 @@
<Authors>Cam Sinclair</Authors>
<Description>A .NET wrapper for the libADLMIDI library, a free Software MIDI synthesizer library with OPL3 emulation</Description>
<Copyright>2020 Cam Sinclair</Copyright>
<PackageId>ADLMidi.NET</PackageId>
<PackageLicenseExpression>LGPL-2.1-or-later</PackageLicenseExpression>
<PackageProjectUrl>https://github.com/CSinkers/AdlMidi.NET</PackageProjectUrl>
<RepositoryUrl>https://github.com/CSinkers/AdlMidi.NET</RepositoryUrl>
<RepositoryType>Git</RepositoryType>
<PackageTags>MIDI OPL3 ADLMIDI</PackageTags>
<PackageProjectUrl>https://github.com/CSinkers/AdlMidi.NET</PackageProjectUrl>
<LangVersion>latest</LangVersion>
<RepositoryType>Git</RepositoryType>
<RepositoryUrl>https://github.com/CSinkers/AdlMidi.NET</RepositoryUrl>
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
<version>1.0.1</version>
<version>1.0.2</version>
</PropertyGroup>

<ItemGroup>
<PackageReference Include="SerdesNet" Version="1.0.4" />
<PackageReference Include="SerdesNet" Version="1.1.1" />
<PackageReference Include="System.Memory" Version="4.5.4" />
</ItemGroup>

Expand Down
2 changes: 1 addition & 1 deletion src/GlobalTimbreLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ public static GlobalTimbreLibrary Serdes(GlobalTimbreLibrary library, ISerialize
}, s);
}

s.List(library.Data, headers.Count - 1, TimbreData.Serdes);
s.List(nameof(library.Data), library.Data, headers.Count - 1, TimbreData.Serdes);
for (int i = 0; i < headers.Count - 1; i++)
{
library.Data[i].MidiPatchNumber = headers[i].MidiPatchNumber;
Expand Down
4 changes: 2 additions & 2 deletions src/WoplFile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,10 +48,10 @@ public static WoplFile Serdes(WoplFile w, ISerializer s)

// Load instruments (128 per bank)
foreach (var bank in w.Melodic)
s.List(bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
s.List(nameof(w.Melodic), bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);

foreach (var bank in w.Percussion)
s.List(bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);
s.List(nameof(w.Percussion), bank.Instruments, bank.Instruments.Length, WoplInstrument.Serdes);

s.PopVersion();
return w;
Expand Down

0 comments on commit b6dc05f

Please sign in to comment.