ar1st0crat / NWaves

.NET DSP library with a lot of audio processing functions
MIT License
453 stars 71 forks source link

WaveFile: Compiler Warning (level 2) CS0652 @ line 134 #82

Open wimachtendink opened 1 year ago

wimachtendink commented 1 year ago

Probably very low priority, here there's a comparison that's throwing a compiler warning

WaveFile.cs @ line 134:

if (waveFmt.AudioFormat == 0xFFFE)
{
    waveFmt.AudioFormat = fmtSubFormatCode;
}

My guess is that this should be a WaveFormat.AudioFormat should be a ushort or perhaps the comparison should be some sort of byte comparison.