naudio / NAudio

Audio and MIDI library for .NET

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

24 bit PCM .wav file does not display correctly in Winforms WaveViewer

ElklandTech opened this issue · comments

Sample/problem Reaper .wav file can be accessed here (tried to attach .zip of file but it was 26MB and GitHub limits file size to 25MB)...
https://nd.nl.tab.digital/s/E2TmLPf9ZXCf3KG

Sample .wav file displays incorrectly in WaveViewer (mostly full black lines). I can open this file in Audacity and the wave form displays correctly. I can then save the file as .wav from Audacity and then display the Audacity rendered .wav file in WaveViewer and it displays correctly. Not sure why (original) .wav file encoded by Reaper will not work properly??

Thanks!

It seems that the WaveViewer does not properly handle 24bit PCM. If I switch the file to 16bit PCM the WaveViewer displays it properly.