Hi
Does anyone have any examples on embedding Windows Media Player into a
SDL application? I would like to create a multi-media frontend system,
playing audio and video, along with the visualisations ala winamp.
A google came across an old thread, along with an example zip file, but
the link is now dead.
I can control WinAmp from a SDL app, but it relies on running an
external app - I’d like to make it as self-contained as possible.
Thanks
Berry, David wrote:
Does anyone have any examples on embedding Windows Media Player into a
SDL application? I would like to create a multi-media frontend system,
playing audio and video, along with the visualisations ala winamp.
A google came across an old thread, along with an example zip file, but
the link is now dead.
I can control WinAmp from a SDL app, but it relies on running an
external app - I’d like to make it as self-contained as possible.
I’d use something like SDL_sound or SDL_mixer and play the sounds internally.
I’ve made a toy that I do viz stuff with, you can grab it at:
http://jcatki.no-ip.org/viewcvs/viewcvs.cgi/sdlwav/sdlwav.tar.gz?tarball=1
it uses SDL_mixer (and fftw if you have it…)
tune the Makefile to your system, make and run sdlwav musicfile.ogg or mp3…or whatever your SDL_mixer handles.
at least using one of these libraries will give you the chance to be portable, unlike WMP would be.
-LIM-