Ambiera ForumDiscussions, Help and Support. |
|
|
|||||
|
Does anyone have any sample code they could post / point me to that will visualise a wave form (.NET, C) from an MP3/FLAC file? Preferably to a winforms picture box control. |
||||
|
You can get the pure audio wave data (PCM, https://en.wikipedia.org/wiki/Pu...) from irrklang using ISoundSource.SampleData. Drawing this is simple: Draw a vertical bar for each value, and the height of the bar is that value. |
||||
|
Using:
SoundSource.SampleData throws an exception of type 'System.NullReferenceException' (C, locally stored MP3 file. Am I doing something wrong? |
||||
|
That was C-sharp, not C |
||||
|
Tried adding: SoundSource.ForcedStreamingThreshold = -1; with no luck. |
||||
|
Any suggestions? |
||||
|
It's probably too big, when decompressed and doesn't fit into memory for such an operation. So there is likely nothing you can do about that. |
|