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. sound recording & playback

sound recording & playback

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

    does anybody have any code that helps in sound recording from microphone without using directshow/directsound and all those complex things? also not write to a file but to keep the recorded sound data in memory.

    A J 2 Replies Last reply
    0
    • S shoonya

      does anybody have any code that helps in sound recording from microphone without using directshow/directsound and all those complex things? also not write to a file but to keep the recorded sound data in memory.

      A Offline
      A Offline
      Anthony_Yio
      wrote on last edited by
      #2

      from microphone without using directshow/directsound and all those complex things DirectX is a layer provided by Microsoft to access hardware using a standard uniform API, without it, you will have to write each API for each of the hardware installed. Like, when you need to use Creative Sound Card, you will need separate API and so is other sound card. You will need a lot of version of your program to get it compatible. Sonork 100.41263:Anthony_Yio Life is about experiencing ...

      M 1 Reply Last reply
      0
      • A Anthony_Yio

        from microphone without using directshow/directsound and all those complex things DirectX is a layer provided by Microsoft to access hardware using a standard uniform API, without it, you will have to write each API for each of the hardware installed. Like, when you need to use Creative Sound Card, you will need separate API and so is other sound card. You will need a lot of version of your program to get it compatible. Sonork 100.41263:Anthony_Yio Life is about experiencing ...

        M Offline
        M Offline
        Marcus Spitzmiller
        wrote on last edited by
        #3

        Anthony - That's not entirely correct. Another option is to use the Windows MME API - for example the WaveIn* functions will do the trick too, and you won't really care about the hardware. Shoonya - start with the WaveInOpen function and go from there. I don't really know what you are looking for, but this is a viable alternative to DirectX. You might find, though, that this is has different 'complex things', and DirectX might still be the way to go. The choice is yours. Marcus Spitzmiller "Why must life be so hard? Why must I fail at every attempt at masonry?" - Homer

        1 Reply Last reply
        0
        • S shoonya

          does anybody have any code that helps in sound recording from microphone without using directshow/directsound and all those complex things? also not write to a file but to keep the recorded sound data in memory.

          J Offline
          J Offline
          Joe Woodbury
          wrote on last edited by
          #4

          Sorry, but decided to delete my previous posting. I don't want to deal with any questions. If you use email notification, you'll have a copy. Here's an article that covers some of the same things (except, he apparently uses callbacks, which I don't normally recommend, but if it works....) http://www.codeproject.com/audio/wave_class_for_playing_and_recording.asp#xx648264xx[^] Anyone who thinks he has a better idea of what's good for people than people do is a swine. - P.J. O'Rourke

          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