News:

MASM32 SDK Description, downloads and other helpful links
MASM32.com New Forum Link
masmforum WebSite

Re: How to synchronize music with led

Started by elmo, April 18, 2011, 04:48:51 AM

Previous topic - Next topic

elmo

I have same question.
I can play mp3 with the following code with MCI
With MCI, I can get speed, get duration, play/ stop a *.mp3 file
but how to get mp3' beat?
what API must I use? I don't have imagine on it.
would you like to give me a clue?
thank you.


invoke MCIWndCreate,
hWin, 400000h,
WS_CHILD or MCIWNDF_NOOPEN or MCI_NOTIFY,
addr szMP3path
mov hMci,eax
pop eax ;For some reason 4 things are pushed onto stack unnecessarily
pop eax ;so they have to be popped off the stack to prevent crashing
pop eax ;Thanks to Ron Thomas for spotting that one!
pop eax
invoke MCIWndGetEnd, hMci           ;GET END OF MP3(in MILI SECONDS)
invoke MCIWndPlay, hMci                ;START PLAY
invoke MCIWndGetSpeed,hMci        ;GET SPEED
be the king of accounting programmer world!

BogdanOntanu

Elmo,

Please do NOT revive very old topics (from 2005 in this case)

Instead if you have a question please take the time and create your own new topic.
Ambition is a lame excuse for the ones not brave enough to be lazy.
http://www.oby.ro

elmo

be the king of accounting programmer world!

dedndave

it is best to create a new topic, and provide a link to the old one, if desired   :U