5

I am trying to create a audio wave visualizer using libvlc. Have searched the net thoroughly but was unable to find any help. It would be really great if anyonce can help me out here.

Thanks in advance :)

user1211499
  • 155
  • 1
  • 10
  • I think that reading [random questions with the tags C# and libvlc](http://stackoverflow.com/questions/tagged/c%23+libvlc) may already help you to understand how libvlc works. – Morwenn May 22 '13 at 07:38
  • I have been able to play videos using libvlc. But what I am looking for is some fft function to create a wave like audio visualizer.havent found it yet. Any suggestions will be really helpful. Thanks – user1211499 May 22 '13 at 12:06
  • Oh, my bad then. I now see what you're trying to achieve :) There isn't such a thing built in libvlc (or it's hidden very well). I fear that you will have to craft something based on the audio callbacks to get audio information from the media player and do whatever you can with, but I doubt you will find any high-level function for that :/ – Morwenn May 22 '13 at 12:12
  • I have found this link https://github.com/vlcchina/vlc-player-dev/blob/master/modules/visualization/visual/fft.c ..it seems there are fft functions..but havent found it in my vlc and really not getting any help on using it in code – user1211499 May 22 '13 at 13:43

2 Answers2

2

I think, you can get waveform with the help of Stream to memory module (smem)

https://wiki.videolan.org/Stream_to_memory_(smem)_tutorial/

Piroxiljin
  • 621
  • 6
  • 14
-1

Have a look at MediaPlayer Class.

MSDN:

http://msdn.microsoft.com/en-us/library/system.windows.media.mediaplayer.aspx

It is a wrapper around Windows Media Player which will let you do in code most of what WMP can do.

If you are using .NET 2.0 you will have to look at Windows Media Player SDK.

In that case, this answer might be helpful for you.

Community
  • 1
  • 1
Freelancer
  • 9,008
  • 7
  • 42
  • 81