Skip to content

Commit

Permalink
Use .NET 8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
marcin-golebiowski committed Oct 11, 2024
1 parent e7c5525 commit 885e2c4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,12 +161,12 @@ private byte[] Compute(int sampleRate, double amplitude, int bitsPerSample, (dou
for (var i = 0; i < numberOfSamples; i++)
{
byte leftChannelValue = (byte)((Pwl(currentTime, leftChannel) / amplitude) * byte.MaxValue);
result.AddRange(BitConverter.GetBytes(leftChannelValue));
result.AddRange(BitConverter.GetBytes((short)leftChannelValue));

if (rightChannel != null)
{
byte rightChannelValue = (byte)((Pwl(currentTime, rightChannel) / amplitude) * byte.MaxValue);
result.AddRange(BitConverter.GetBytes(rightChannelValue));
result.AddRange(BitConverter.GetBytes((short)rightChannelValue));
}

currentTime += step;
Expand Down
4 changes: 2 additions & 2 deletions src/SpiceSharpParser/SpiceSharpParser.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@

<PropertyGroup>
<ProjectGuid>{DF3DD787-71CC-4C89-9E33-DC4536A52278}</ProjectGuid>
<TargetFrameworks>netstandard2.0;net6.0</TargetFrameworks>
<TargetFrameworks>netstandard2.0;net6.0;net8.0</TargetFrameworks>
<Authors>SpiceSharp</Authors>
<PackageProjectUrl>https://github.com/SpiceSharp/SpiceSharpParser</PackageProjectUrl>
<Copyright>Copyright 2022</Copyright>
<Copyright>Copyright 2024</Copyright>
<GeneratePackageOnBuild>true</GeneratePackageOnBuild>
<RepositoryUrl>https://github.com/SpiceSharp/SpiceSharpParser</RepositoryUrl>
<RepositoryType></RepositoryType>
Expand Down

0 comments on commit 885e2c4

Please sign in to comment.