Click here to Skip to main content
15,881,882 members
Home / Discussions / C#
   

C#

 
GeneralRe: OutOfMemoryException Pin
V.19-Feb-14 0:03
professionalV.19-Feb-14 0:03 
GeneralRe: OutOfMemoryException Pin
computerpublic19-Feb-14 0:10
computerpublic19-Feb-14 0:10 
GeneralRe: OutOfMemoryException Pin
V.19-Feb-14 0:31
professionalV.19-Feb-14 0:31 
GeneralRe: OutOfMemoryException Pin
Eddy Vluggen19-Feb-14 0:31
professionalEddy Vluggen19-Feb-14 0:31 
QuestionRe: OutOfMemoryException Pin
Richard Deeming19-Feb-14 2:24
mveRichard Deeming19-Feb-14 2:24 
GeneralRe: OutOfMemoryException Pin
Richard MacCutchan19-Feb-14 2:47
mveRichard MacCutchan19-Feb-14 2:47 
GeneralRe: OutOfMemoryException Pin
Paulo Zemek19-Feb-14 8:43
mvaPaulo Zemek19-Feb-14 8:43 
QuestionHow to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps18-Feb-14 22:31
snakelecaps18-Feb-14 22:31 
Hi,
Im looking for a simple way to convert byte array 32bits to byte array 16bits... I already asked in stackoverflow but the response was bad.
C#
 byte [] data = Convert.FromBase64String("-- my string encoded")
var skipBytes = 0;
         byte[] data16bit;
         int samples ;
             skipBytes = 0;
             samples = data.Length / 4;

         data16bit = new byte[samples * 2];
         int writeIndex = 0;
         int readIndex = 0;
         for(var i = 0; i < samples; ++i)
         {
             readIndex += skipBytes;
            //read the two most significant bytes
            data16bit[writeIndex++] = data[readIndex++];
             data16bit[writeIndex++] = data[readIndex++];
         }

Please help or enlighten me Wink | ;)
SuggestionRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Richard Deeming19-Feb-14 2:21
mveRichard Deeming19-Feb-14 2:21 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps19-Feb-14 2:38
snakelecaps19-Feb-14 2:38 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Richard Deeming19-Feb-14 2:40
mveRichard Deeming19-Feb-14 2:40 
AnswerRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
Bernhard Hiller19-Feb-14 21:38
Bernhard Hiller19-Feb-14 21:38 
GeneralRe: How to Change Wave from byte array 32bit/ 24bits 11khz to Byte array 16bit 8kz Pin
snakelecaps20-Feb-14 5:28
snakelecaps20-Feb-14 5:28 
QuestionDNS Suffix Pin
Ramug1018-Feb-14 22:11
Ramug1018-Feb-14 22:11 
SuggestionRe: DNS Suffix Pin
Richard MacCutchan18-Feb-14 22:29
mveRichard MacCutchan18-Feb-14 22:29 
GeneralRe: DNS Suffix Pin
Ramug1018-Feb-14 22:38
Ramug1018-Feb-14 22:38 
GeneralRe: DNS Suffix Pin
Richard MacCutchan18-Feb-14 22:57
mveRichard MacCutchan18-Feb-14 22:57 
Questionneed help with code with reference and generic function Pin
neodeaths18-Feb-14 16:18
neodeaths18-Feb-14 16:18 
AnswerRe: need help with code with reference and generic function Pin
Richard Andrew x6418-Feb-14 17:51
professionalRichard Andrew x6418-Feb-14 17:51 
AnswerRe: need help with code with reference and generic function Pin
Richard MacCutchan18-Feb-14 22:27
mveRichard MacCutchan18-Feb-14 22:27 
GeneralRe: need help with code with reference and generic function Pin
Freak3019-Feb-14 1:45
Freak3019-Feb-14 1:45 
AnswerRe: need help with code with reference and generic function Pin
Richard Deeming19-Feb-14 2:14
mveRichard Deeming19-Feb-14 2:14 
AnswerRe: need help with code with reference and generic function Pin
Matt T Heffron19-Feb-14 7:54
professionalMatt T Heffron19-Feb-14 7:54 
QuestionCreating HUGE Bitmap objects? Pin
SledgeHammer0118-Feb-14 8:10
SledgeHammer0118-Feb-14 8:10 
AnswerRe: Creating HUGE Bitmap objects? Pin
David Knechtges18-Feb-14 10:54
David Knechtges18-Feb-14 10:54 

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.