Click here to Skip to main content
16,014,672 members
Home / Discussions / C#
   

C#

 
QuestionOverride == operator Pin
relaeir24-Jun-06 16:21
relaeir24-Jun-06 16:21 
AnswerRe: Override == operator Pin
leppie24-Jun-06 22:01
leppie24-Jun-06 22:01 
AnswerRe: Override == operator Pin
Robert Rohde24-Jun-06 22:59
Robert Rohde24-Jun-06 22:59 
QuestionIE Toolbar or BHO Images and Temp Folder Location Pin
Ranjan Banerji24-Jun-06 15:14
Ranjan Banerji24-Jun-06 15:14 
AnswerRe: IE Toolbar or BHO Images and Temp Folder Location Pin
Ranjan Banerji25-Jun-06 8:04
Ranjan Banerji25-Jun-06 8:04 
QuestionA problem with WebBrowser control Pin
AngryC24-Jun-06 14:50
AngryC24-Jun-06 14:50 
AnswerRe: A problem with WebBrowser control Pin
led mike25-Jun-06 8:42
led mike25-Jun-06 8:42 
QuestionDirectSound Pin
surfman1924-Jun-06 13:36
surfman1924-Jun-06 13:36 
How could i read the CaptureBuffer into a MemoryStream and write it into SecondaryBuffer???

for reading the CaptureBuffer into an array (CaptureData) it works fine:
<br />
        private void RecordCapturedData()<br />
        {<br />
            byte[] CaptureData = null;<br />
            int ReadPos;<br />
            int CapturePos;<br />
            int LockSize;<br />
<br />
            applicationBuffer.GetCurrentPosition(out CapturePos, out ReadPos);<br />
            LockSize = ReadPos - NextCaptureOffset;<br />
            if (LockSize < 0)<br />
                LockSize += CaptureBufferSize;<br />
<br />
            // Block align lock size so that we are always write on a boundary<br />
            LockSize -= (LockSize % NotifySize);<br />
<br />
            if (0 == LockSize)<br />
                return;<br />
<br />
            CaptureData = (byte[])applicationBuffer.Read(NextCaptureOffset, typeof(byte), LockFlag.None, LockSize);<br />
<br />
            soundBuffer.Write(0, CaptureData, LockFlag.EntireBuffer);<br />
<br />
            soundBuffer.SetCurrentPosition(0);<br />
<br />
            // Play audio buffer<br />
            soundBuffer.Play(0, BufferPlayFlags.Looping);<br />
<br />
            // Move the capture offset along<br />
            NextCaptureOffset += CaptureData.Length;<br />
            NextCaptureOffset %= CaptureBufferSize; // Circular buffer<br />
        }<br />

QuestionHow do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
yoffir24-Jun-06 13:17
yoffir24-Jun-06 13:17 
AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Colin Angus Mackay24-Jun-06 14:42
Colin Angus Mackay24-Jun-06 14:42 
AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Paul Conrad24-Jun-06 19:08
professionalPaul Conrad24-Jun-06 19:08 
GeneralRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Colin Angus Mackay24-Jun-06 23:54
Colin Angus Mackay24-Jun-06 23:54 
GeneralRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
Paul Conrad25-Jun-06 7:23
professionalPaul Conrad25-Jun-06 7:23 
AnswerRe: How do I encrypt (hide) an encryption-key variable without its value being shown in the ildasm (assembly) in C#/.NET Pin
mav.northwind25-Jun-06 0:17
mav.northwind25-Jun-06 0:17 
QuestionHow to invoke windows API in C# Pin
ZHENG.YANG.POINTER24-Jun-06 12:11
professionalZHENG.YANG.POINTER24-Jun-06 12:11 
AnswerRe: How to invoke windows API in C# Pin
Christian Graus24-Jun-06 12:15
protectorChristian Graus24-Jun-06 12:15 
QuestionSpeech Compression for Voice Chat Pin
surfman1924-Jun-06 11:41
surfman1924-Jun-06 11:41 
AnswerRe: Speech Compression for Voice Chat Pin
Ed.Poore24-Jun-06 12:47
Ed.Poore24-Jun-06 12:47 
GeneralRe: Speech Compression for Voice Chat Pin
surfman1924-Jun-06 13:33
surfman1924-Jun-06 13:33 
GeneralRe: Speech Compression for Voice Chat Pin
Ed.Poore25-Jun-06 9:03
Ed.Poore25-Jun-06 9:03 
AnswerRe: Speech Compression for Voice Chat Pin
mav.northwind25-Jun-06 0:20
mav.northwind25-Jun-06 0:20 
Questionobject vs. text stream Pin
Ed 5424-Jun-06 10:40
Ed 5424-Jun-06 10:40 
AnswerRe: object vs. text stream Pin
Ed 5424-Jun-06 11:19
Ed 5424-Jun-06 11:19 
QuestionSMS Server Pin
mostafa_h24-Jun-06 10:36
mostafa_h24-Jun-06 10:36 
QuestionHow do you implement a message queuing system? Pin
Steve Messer24-Jun-06 10:25
Steve Messer24-Jun-06 10:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.