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#
  4. Hailing those adept at DirectSound using C# .NET

Hailing those adept at DirectSound using C# .NET

Scheduled Pinned Locked Moved C#
csharpcomhelpdiscussion
3 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.
  • N Offline
    N Offline
    NietzscheDisciple
    wrote on last edited by
    #1

    Hello All, I've been playing around with DirectSound in the past month or so. As a first project I set out to write an application that does the following: 1. Playback wav files 2. Record wav files 3. Stream audio from the sound card to the speakers. I was able to do (1) without a problem and (2) after a bit of a struggle. However, I just don't seem to be able to do (3). It would seem to be trivial, considering I've done (1) and (2). My scheme is this: CaptureBuffer -> ByteArray -> MemoryStream -> SecondaryBuffer I'm running into problems in the ByteArray -> MemoryStream portion and there on. I realize that this may not be a topic a majority of the users of this forum are interested in and am absolutely willing to continue this discussion privately through email: (nietzschedisciple@gmail.com) I would really appreciate it if somebody could email me some working code snippets (I don't want to see your entire program, just the parts relevant to my problem). I think I understand what I'm supposed to do THEORETICALLY. The problem is in translating it to code. Thanks for reading!

    L 1 Reply Last reply
    0
    • N NietzscheDisciple

      Hello All, I've been playing around with DirectSound in the past month or so. As a first project I set out to write an application that does the following: 1. Playback wav files 2. Record wav files 3. Stream audio from the sound card to the speakers. I was able to do (1) without a problem and (2) after a bit of a struggle. However, I just don't seem to be able to do (3). It would seem to be trivial, considering I've done (1) and (2). My scheme is this: CaptureBuffer -> ByteArray -> MemoryStream -> SecondaryBuffer I'm running into problems in the ByteArray -> MemoryStream portion and there on. I realize that this may not be a topic a majority of the users of this forum are interested in and am absolutely willing to continue this discussion privately through email: (nietzschedisciple@gmail.com) I would really appreciate it if somebody could email me some working code snippets (I don't want to see your entire program, just the parts relevant to my problem). I think I understand what I'm supposed to do THEORETICALLY. The problem is in translating it to code. Thanks for reading!

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      If you don't get your answer here, try the forums on http://www.gamedev.net, plenty of people there I'm sure have tried this, or would at least have an idea.

      N 1 Reply Last reply
      0
      • L Lost User

        If you don't get your answer here, try the forums on http://www.gamedev.net, plenty of people there I'm sure have tried this, or would at least have an idea.

        N Offline
        N Offline
        NietzscheDisciple
        wrote on last edited by
        #3

        John, thanks for your suggestion. However, I've tried the DirectX forum there. Not too many people interested in DirectSound - more interested in the graphics aspect. I did receive a few suggestions, none too helpful. I was wondering if any users here dabble with DirectSound...

        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