Length of wave file?

  • Thread starter Thread starter Lars Stenberg
  • Start date Start date
L

Lars Stenberg

Hi!

Is it possible to get the length of a wave file? I just want to
calculate the length and no other shit ;)

I´d like to do it manualy instead of using any win32 api, but i
appriciate solutions in both ways.

Cheers,
Lars
 
Lars,

I'll asume you mean the length of play time.
Simply Yes, you could do it if you loaded the file, determined the bit rate
and frequency, then do the calculation. But WHY would you want to go through
all that trouble. ;)

I would suggest resigning yourself to using the winmm.dll.

Hope this helps.
 
Glen said:
Lars,

I'll asume you mean the length of play time.
Simply Yes, you could do it if you loaded the file, determined the bit rate
and frequency, then do the calculation. But WHY would you want to go through
all that trouble. ;)

I would suggest resigning yourself to using the winmm.dll.

Hope this helps.

Hi, Again!

Thanks for your answer, where can i find some api-reference for winmm.dll?

Or do you know what function to call?

Cheers,
Lars
 
Lars,

I would suggest searching MSDN for the header file for the DLL. The header
file is called "Mmsystem.h"

Sorry I couldn't find it quickly, but I'm sure if you read the following
docs I'm sure you'll figure it out.
The Platform SDK: Windows Multimedia documant "Waveform Audio" has all the
information you need.

If you have further questions once you find the APIs you need, please
repost.
 
Hi again!

I sorry but i cant figure out, i´ve searched google for hours =/

Anyone could tell more precisly what to dig for?

Regards,
Lars
 
Back
Top