Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Wave file player using drag bar.

Wave file player using drag bar.

Scheduled Pinned Locked Moved C / C++ / MFC
comjsonhelpquestion
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    hasansheik
    wrote on last edited by
    #1

    Hey I am developing a wave file player using wavein waveout api. I want to provide a fecility for fast foward and fast rewind using a dragbar control. please help me how do i find the total playing time of the wave file. Yours Hasan Contact him at: hasansheik@hotmail.com hasansheik@yahoo.co.in hasansheik@lycos.com

    A 1 Reply Last reply
    0
    • H hasansheik

      Hey I am developing a wave file player using wavein waveout api. I want to provide a fecility for fast foward and fast rewind using a dragbar control. please help me how do i find the total playing time of the wave file. Yours Hasan Contact him at: hasansheik@hotmail.com hasansheik@yahoo.co.in hasansheik@lycos.com

      A Offline
      A Offline
      Alexander M
      wrote on last edited by
      #2

      Calculate it. Get the size of the data chunk and the WAVEFORMATEX struct. Bits per second = nChannels * nSamplesPerSec * wBitsPerSample; (for uncompressed WAV) Length (in seconds) = ( filesize * 8 ) / Bits per second; Don't try it, just do it! ;-)

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups