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