New Post: Four channel audio INPUT
thanks mark. what i have tried is this: (if channels are 2 it works but not with 4) int channels = 4; WaveIn waveInStream = new WaveIn(); waveInStream.DeviceNumber = 0; //this is my device -...
View ArticleNew Post: Four channel audio INPUT
yes, they don't tend to bother making the waveIn and waveOut drivers suport multi-channel. You could try WasapiIn if you are on Windows Vista or 7
View ArticleNew Post: Four channel audio INPUT
could you elaborate or point me to an example. i can't find any reference to WasapiIn. which name space is this part of?
View ArticleNew Post: Four channel audio INPUT
NAudio.CoreAudioApi.WasapiCapture might work for you
View ArticleNew Post: Four channel audio INPUT
ok great thanks, so far so good. that seems to start and it's indicating four channel audio! next issue: the encoding is WaveFormatEncoding.Extensible in my DataAvailable handler i'd like to decode...
View ArticleNew Post: Four channel audio INPUT
BitConverter class is probably best. What bit depth is it recording at?
View ArticleNew Post: Four channel audio INPUT
bits per sample: 32 extra size: 22 channels: 4 i was expecting 4x16 bits - so not quite sure how to unpack this? assume it's not just interleaved in a simple way?
View ArticleNew Post: Four channel audio INPUT
yes they will be interleaved, but it looks like integers. BitConverter.ToInt32(buffer, offset) will do it
View ArticleNew Post: Audio time resolution.
thanks Max, that is a good approach to override the WaveStream
View ArticleUpdated Wiki: MP3
MP3 Playing an MP3 1) Add the following using statements to your project: using NAudio; using NAudio.Wave; 2) Create the declarations in your class: //Declarations required for audio out and the MP3...
View ArticleNew Post: WaveViewer loses image of waveform
Hi, this is 5th day that I can't solve this problem. Firstly I thought it was something with C# and .NET But know I lost all my hopes and will to live ;) I made a class - AudioManager which has...
View ArticleNew Post: Four channel audio INPUT
i am struggling to decode the data stream. it certainly seems to have 4 bytes per chunk. however, when i convert this using the bitconverter method as you describe i get very large numbers even on...
View ArticleNew Post: Four channel audio INPUT
i think i solved the issue with byte order - it does indeed seem to be big endian. but another question on this - i am handling the DataAvailable event obviously to get my information. all i need is...
View ArticleCreated Issue: WaveOutBuffer.OnDone - set header.bufferLength = bytes? [16340]
I ran into a problem using WaveOut to play a WaveFormatConversionStream. It appears that WaveFormatConversionStream.Read is consistently reading only 4072 bytes into a 4800 byte buffer, but that...
View ArticleNew Post: Play position
Hi, I'm using NAudio's WaveViewer control to show waveform of a file. I can play this file. But now I want to make an indicator which shows which part of wave is currently being played. I'll try to...
View ArticleNew Post: Play position
The simplest way is to have a timer that fires say 10 times a second, and uses the CurrentPosition property of the WaveFileReader/Mp3FileReader to find out where we are up to. There are more accurate...
View ArticleNew Post: Problem Converting To GSM610
here you go using (WaveFileReader reader = new WaveFileReader(Input)) { using (WaveFormatConversionStream Conveter = new...
View ArticleNew Post: Problem Converting To GSM610
try using Gsm610WaveFormat instead: using (WaveFileReader reader = new WaveFileReader(Input)) { using (var Conveter = new WaveFormatConversionStream(new Gsm610WaveFormat()), reader)) {...
View ArticleNew Post: Problem Converting To GSM610
i get a slightly different error doing that. AcmNotPossible calling acmStreamSize at NAudio.MmException.Try(MmResult result, String function) at...
View Article