I'm creating a wav player and am making use of PlaySound(). i need to create a simple bar visualization like the one in winamp..
Please help me..THANKS!
[edit] how can i play mp3 files in my program?
I'm creating a wav player and am making use of PlaySound(). i need to create a simple bar visualization like the one in winamp..
Please help me..THANKS!
[edit] how can i play mp3 files in my program?
Do you mean a progress bar or a display of the sound volume/intensity?
AFAIK you can't with playsound. Need finer control or more info from the OS. From Winmm.lib and Mmsystem.h.
Look at using WM_WOM_ messages and a timer for a progressbar.
waveOutPrepareHeader()
waveOutWrite()
SetTimer()
waveOutUnprepareHeader()
waveOutClose()
waveOutGetPosition()
will help.
"Man alone suffers so excruciatingly in the world that he was compelled to invent laughter."
Friedrich Nietzsche
"I spent a lot of my money on booze, birds and fast cars......the rest I squandered."
George Best
"If you are going through hell....keep going."
Winston Churchill
a few years ago i used the fmod libraries to play music. It was free then as long as you are not going to profit from it.
FMod MP3 Libraries
I was able to play mp3's or wavs but you have to pay if you intend to profit.
All Your Base Are Still Belong to Someone!!!
And you Remember that!!!
winamp has a SDK on there site,
it might have something in it to help you
with your visualization.