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. Visual Basic
  4. how do i flush sound buffer

how do i flush sound buffer

Scheduled Pinned Locked Moved Visual Basic
helpquestion
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.
  • S Offline
    S Offline
    shiva shankar
    wrote on last edited by
    #1

    how do i flush sound buffer . i need it because while playing in between if press stop button , it is retaining contents in buffer and again if i press play button it is getting overlapped with previous content of the buffer and there is glitch (problem)while playing at the beginning. i am using "waveoutopen" function

    D 1 Reply Last reply
    0
    • S shiva shankar

      how do i flush sound buffer . i need it because while playing in between if press stop button , it is retaining contents in buffer and again if i press play button it is getting overlapped with previous content of the buffer and there is glitch (problem)while playing at the beginning. i am using "waveoutopen" function

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      The problem is you apparently are not stopping the waveOut and Closing the device before you start playing another soung, you're actually appending the new song data to the one still playing. To flush the buffer, use waveOutReset() and supply it the handle you got back in the first parameter passed to waveOutOpen, then use that same handle with waveOutClose to close and release the device. RageInTheMachine9532 "...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome

      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