Skip to content

Commit

Permalink
Failed to load IFF-SMUS modules if a sample have a start octave of 8 …
Browse files Browse the repository at this point in the history
…or above.
  • Loading branch information
neumatho committed Feb 5, 2025
1 parent 0b5183b commit d46bf03
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Source/Agents/Players/IffSmus/IffSmus.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<Company>Polycode</Company>
<Product>NostalgicPlayer</Product>
<Description>Plays modules of type IFF-SMUS</Description>
<Version>2.0.2</Version>
<Version>2.0.3</Version>
</PropertyGroup>

<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ public SampleInfo GetSampleInfo(GlobalInfo globalInfo)
Panning = -1,
};

if (formatData.SampleData.StartOctave == formatData.SampleData.EndOctave)
if ((formatData.SampleData.StartOctave == formatData.SampleData.EndOctave) || (formatData.SampleData.StartOctave >= 8))
{
sampleInfo.Sample = formatData.SampleData.SampleData;
sampleInfo.Length = (uint)formatData.SampleData.SampleData.Length;
Expand Down

0 comments on commit d46bf03

Please sign in to comment.