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. directsound

directsound

Scheduled Pinned Locked Moved C / C++ / MFC
debuggingtutorialquestion
5 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.
  • V Offline
    V Offline
    viliam
    wrote on last edited by
    #1

    I am using directsound to do sound recording - everything works fine. "I have loop and event signals my to read (save buffer) ..regular way how to do capture (taken from the sample) But: It runs all day long, day after day (continous) but sometime happen, "there is no data" (it happened ones after month of working and so it is hard to set it up for debug) Probably: 1) there is event but buffer size is zero 2) or there is no event at all When this happen, it never restore i have to restart program (probaly close and open device again will be enough) Any idea how this could happen? Thank you lot

    viliam

    C _ H 3 Replies Last reply
    0
    • V viliam

      I am using directsound to do sound recording - everything works fine. "I have loop and event signals my to read (save buffer) ..regular way how to do capture (taken from the sample) But: It runs all day long, day after day (continous) but sometime happen, "there is no data" (it happened ones after month of working and so it is hard to set it up for debug) Probably: 1) there is event but buffer size is zero 2) or there is no event at all When this happen, it never restore i have to restart program (probaly close and open device again will be enough) Any idea how this could happen? Thank you lot

      viliam

      C Offline
      C Offline
      CPallini
      wrote on last edited by
      #2

      viliam wrote:

      (it happened ones after month of working and so it is hard to set it up for debug)

      Your application is stunningly stable, even more stable than its OS. :rolleyes: Are you crying for the moon, aren't you? :-D

      If the Lord God Almighty had consulted me before embarking upon the Creation, I would have recommended something simpler. -- Alfonso the Wise, 13th Century King of Castile.
      This is going on my arrogant assumptions. You may have a superb reason why I'm completely wrong. -- Iain Clarke
      [My articles]

      1 Reply Last reply
      0
      • V viliam

        I am using directsound to do sound recording - everything works fine. "I have loop and event signals my to read (save buffer) ..regular way how to do capture (taken from the sample) But: It runs all day long, day after day (continous) but sometime happen, "there is no data" (it happened ones after month of working and so it is hard to set it up for debug) Probably: 1) there is event but buffer size is zero 2) or there is no event at all When this happen, it never restore i have to restart program (probaly close and open device again will be enough) Any idea how this could happen? Thank you lot

        viliam

        _ Offline
        _ Offline
        _AnsHUMAN_
        wrote on last edited by
        #3

        Can you use the process dumper utility and set it up in a way to create a dump of your exe when it crashes... The dump information can help in debugging. Also see and read userdump[^]

        Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

        V 1 Reply Last reply
        0
        • _ _AnsHUMAN_

          Can you use the process dumper utility and set it up in a way to create a dump of your exe when it crashes... The dump information can help in debugging. Also see and read userdump[^]

          Somethings seem HARD to do, until we know how to do them. ;-)_AnShUmAn_

          V Offline
          V Offline
          viliam
          wrote on last edited by
          #4

          It happened ones and it was not on my computer. "I know just symtoms" Actualy program did not crash, it pretend recording but there was no data comming and so empty file was created. When people looked into directory, and there were just empty files they realize something is wrong with my program. They just stopped it and start again and it works again correctly.

          viliam

          1 Reply Last reply
          0
          • V viliam

            I am using directsound to do sound recording - everything works fine. "I have loop and event signals my to read (save buffer) ..regular way how to do capture (taken from the sample) But: It runs all day long, day after day (continous) but sometime happen, "there is no data" (it happened ones after month of working and so it is hard to set it up for debug) Probably: 1) there is event but buffer size is zero 2) or there is no event at all When this happen, it never restore i have to restart program (probaly close and open device again will be enough) Any idea how this could happen? Thank you lot

            viliam

            H Offline
            H Offline
            Hamid Taebi
            wrote on last edited by
            #5

            Can you use of MCI_RECORD?

            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