Results 1 to 9 of 9

Thread: .NET visualization question

  1. #1
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040

    .NET visualization question

    I am trying to incorporate a visualization into my .NET application. Does anyone have any idea how to accomplish this? I can't load any program such as winamp or wmp.. I am using Directx9 SDK for everything. I don't really want to create a new one with Direct3D (don't know how), but would love to somehow be able to run winamp or wmp vis's, is that possible?
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  2. #2
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Well if you don't want to use any outside libraries and you don't want to do something proprietary from scratch, your only option is to reverse engineer the visualization plugin format for winamp or wmp and open and run those plugins yourself. You probably won't be able to directly render the visualizations reliably to a directx surface though and probably have to keep the visualizations in a regular window.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  3. #3
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    I actually don't mind loading some outside libraries, but just don't want to have to load up outside applications like winamp or wmp, but that may not be possible.
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  4. #4
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    You dont have to load windows media player at all to use the visualizations, you can host the control or create the wmp COM object from within your program.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  5. #5
    Newbie
    Join Date
    Oct 2003
    Location
    Tampa, FL
    Posts
    38
    You have run samples of sound through a Fourier Transform. It converts the data into frequency buckets.

  6. #6
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    In order to have wmp properly display the vis wouldn't I have to load the object and also use it to play my mp3's, in order for it to pipe the music through a buffer and use it to change the visualization accordingly? I use DirectX to play all my sound and video and did this because it gave me a drastic performance/memory increase over using WMP object inside my form. I use to use embedded WMP and was not satisfied.. I have since gotten everything to work by using Directx SDK and for other functions, such as playing cd's, I PInvoke Win32 API and use mci.dll...

    The only thing left I have to figure out is a visualization.. I might have to try and make one I guess..
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  7. #7
    Raw Wave god_of_cpu's Avatar
    Join Date
    Jan 2004
    Location
    SilverSpring Maryland
    Posts
    2,960
    Well if your heart is set on doing a visualization there is a Scope example that comes with DirectShow. Its a transform filter that would extract the data you need to make a visualization. It's in C++ though and I think your task is going to be greatly complicated if you try to make a filter in VB, if its even possible. You'd be best off writing the filter in C++ then transporting the data over to your VB app.
    StreetDeck.com Developer (I am Chuck)
    Get StreetDeck at http://www.streetdeck.com
    The Official StreetDeck Forums have moved, please visit us at http://www.streetdeck.com/forum for official support for Streetdeck.

  8. #8
    VENDOR - Centrafuse veetid's Avatar
    Join Date
    Apr 2004
    Posts
    5,040
    I'm writing my APP in C# .NET and Interop Services with lots of the Win32 API, no VB here... I have looked at that example and some other ones and might take that route.. I would definetly write it in c++ and then just interop it in c#.. I had an idea though... Does anyone know of a good screensaver that uses the audio that is currently being played through the soundcard? I know there was older versions of goom that came in an scr version.. If I could find a good vis that was a windows screensaver and that worked with the wave audio being played, that would do it for me very easily.. I would just call the .scr and it would work.. and when the screen was touched it would close itself, because its a screensaver.. I integrated the older goom.scr I found and it works pretty awesome, but it doesn't integrate with the system sound.. Any suggestions?
    __________________
    CENTRAFUSE http://www.centrafuse.com
    01 Jeep Cherokee Sport 4x4 Installed
    M10000/512Mb/20GB, Lilliput 7", Holux GM-210

  9. #9
    Variable Bitrate
    Join Date
    Sep 2003
    Location
    Wilkes Barre, Pa
    Posts
    233
    Have you trying using Bass or FMod just for the visuals? Do a google search for bass.dll or FMod.dll.

    I was using FMod but since have dropped it for bass because of problems with CPU usage when stopping playback. Bass is a little easier to use IMHO but not nearly the power of Fmod..

Similar Threads

  1. DVD drive question
    By Pokey in forum Newbie
    Replies: 3
    Last Post: 05-11-2004, 04:26 PM
  2. lcd power question
    By jrbless in forum LCD/Display
    Replies: 1
    Last Post: 04-07-2002, 12:27 PM
  3. Easy head unit question, and PC to amp question.
    By dudah85 in forum General Hardware Discussion
    Replies: 3
    Last Post: 09-09-2001, 03:57 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •