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. A question about recording

A question about recording

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelptutorial
4 Posts 3 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.
  • M Offline
    M Offline
    minihotto
    wrote on last edited by
    #1

    I write a program about recording a wav file. I use the waveInOpen ...etc functions .... and use mmioOpen......etc functions ...to save the wav file The wav file is correct. but how to set the time of recording time, If I want to record 2 mins , how could I do? Can somebody help me? thanks a lot. minihotto

    M 1 Reply Last reply
    0
    • M minihotto

      I write a program about recording a wav file. I use the waveInOpen ...etc functions .... and use mmioOpen......etc functions ...to save the wav file The wav file is correct. but how to set the time of recording time, If I want to record 2 mins , how could I do? Can somebody help me? thanks a lot. minihotto

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      A really simple way would be to use the samples-per-second of the audio you are recording. Stop writing after (samples-per-second * 120 * bytes-per-sample) bytes have been written. It's not "real time" but it's accurate for the audio stream. Mark

      A 1 Reply Last reply
      0
      • M Mark Salsbery

        A really simple way would be to use the samples-per-second of the audio you are recording. Stop writing after (samples-per-second * 120 * bytes-per-sample) bytes have been written. It's not "real time" but it's accurate for the audio stream. Mark

        A Offline
        A Offline
        alphaxz
        wrote on last edited by
        #3

        Can you give me some code to see?

        I want to have many friends

        M 1 Reply Last reply
        0
        • A alphaxz

          Can you give me some code to see?

          I want to have many friends

          M Offline
          M Offline
          Mark Salsbery
          wrote on last edited by
          #4

          kevinalphaxz wrote:

          Can you give me some code to see?

          Honestly? No.

          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