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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Multimedia real-time sound?

Multimedia real-time sound?

Scheduled Pinned Locked Moved C / C++ / MFC
graphicsc++game-devregexquestion
1 Posts 1 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
    mrcoder
    wrote on last edited by
    #1

    MFC, Win9x, VC6 I have an app the uses a simple hand coded offscreen buffer to animated real-time graphics via the Multimedia timer. I now want to add real-time sound to the app. I want the sound to mimic a Geiger counter. The tone has a fixed frequency, volume and play time of 180ms. On the low end, the tone plays every 1 second. At the other extreme, the high end, the tone plays every 180ms in succession. It is key that a want to change the sound in real-time to match the animation. I tried using the PlaySound() function with a variable pause but the low end pause interrupts my real-time animation. Any ideas? I am surprised at the small amount a code samples and explanation a have found. I am not using DirectX. All suggestions welcome and code samples greatly appreciated!

    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