Click here to Skip to main content
15,891,726 members
Home / Discussions / C#
   

C#

 
QuestionBackslash issue Pin
Ashfaque Hussain19-Feb-14 1:41
Ashfaque Hussain19-Feb-14 1:41 
AnswerRe: Backslash issue Pin
BotCar19-Feb-14 2:13
BotCar19-Feb-14 2:13 
AnswerRe: Backslash issue Pin
Richard MacCutchan19-Feb-14 2:55
mveRichard MacCutchan19-Feb-14 2:55 
AnswerRe: Backslash issue Pin
Simon_Whale19-Feb-14 4:44
Simon_Whale19-Feb-14 4:44 
AnswerRe: Backslash issue Pin
OriginalGriff19-Feb-14 8:31
mveOriginalGriff19-Feb-14 8:31 
QuestionOutOfMemoryException Pin
computerpublic18-Feb-14 23:00
computerpublic18-Feb-14 23:00 
AnswerRe: OutOfMemoryException Pin
Richard MacCutchan18-Feb-14 23:41
mveRichard MacCutchan18-Feb-14 23:41 
AnswerRe: OutOfMemoryException Pin
V.18-Feb-14 23:42
professionalV.18-Feb-14 23:42 
GeneralRe: OutOfMemoryException Pin
computerpublic18-Feb-14 23:59
computerpublic18-Feb-14 23:59 
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 
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 
hi guys,
I used memery stream to resample with Naudio.
I write all wave header but i have a problem, my Subchunk2ID (offset 36 ) is too big.
My length wave file is about 20 Hours but when Im playing it's the good lenght (4/3 second).
i checked and its when i write "Data"... what am I missing
bwl.Write(new char[4] { 'R', 'I', 'F', 'F' });
bwl.Write(length);
bwl.Write(new char[8] { 'W', 'A', 'V', 'E', 'f', 'm', 't', ' ' });
bwl.Write((int)16);
bwl.Write((short)1);
bwl.Write(program.channels);
bwl.Write(program.samplerate);
 bwl.Write((int)(program.samplerate * ((program.BitsPerSample * program.channels) / 8)));
 bwl.Write((short)((program.BitsPerSample * program.channels) / 8));
bwl.Write(program.BitsPerSample);
  bwl.Write(new char[4] { 'd', 'a', 't', 'a' });
  //bw.Write(Header.DataLength);
   bwl.Write(buffer); 


This line
bwl.Write(new char[4] { 'd', 'a', 't', 'a' });
is 10 times bigger than the initial file !!!!
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 

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.