Quantcast
Channel: NAudio
Viewing all articles
Browse latest Browse all 5831

New Post: Audio Recording

$
0
0

sorry, how can i Resample manually ...?

i tryed like this....

outputfile is the name of audio recorded using WasApi loopback method.

 

WaveFileReader Reader = new WaveFileReader(outputfile);

 

 

WaveFormat

 

 

TargetFormat = new WaveFormat();

 

 

WaveStream convertedStream;

TargetFormat =

WaveFormat.CreateCustomFormat(WaveFormatEncoding.Pcm,44100, 2, 176400, 4, 16);

 

convertedStream =

new WaveFormatConversionStream(TargetFormat, Reader); 

 

 

WaveFileWriter.CreateWaveFile(CompresedFileName, convertedStream);

convertedStream.Dispose();

 

 

 but getting the error "AcmNotPossible calling acmStreamOpen"


Viewing all articles
Browse latest Browse all 5831

Trending Articles