naudio / NAudio.WaveFormRenderer

Simple utility to render waveforms of audio files in various styles using System.Drawing

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Waveform Doesn't Render Properly

bsimkins opened this issue · comments

Waveforms don't always render properly when the width is set too low. For example, attempting to render a 30 min wav file to a 400px image results in a partial render then the rest of the image is blank. If the size is increased to 500px the waveform then renders properly. I've attached a couple of examples. Expected behavior would be to either automatically increase the size of the image to the minimum pixels needed or to find a way to render to the specified size. My preference would be to find a way to render to the specified size.

400px Sample with Improper Rendering
400px Sample

500px Sample with Proper Rendering
500px Sample