Quantcast
Channel: NAudio
Browsing all 5831 articles
Browse latest View live

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 Article


New 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 Article


New 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 Article

New Post: Four channel audio INPUT

NAudio.CoreAudioApi.WasapiCapture might work for you

View Article

New 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 Article


New Post: Four channel audio INPUT

BitConverter class is probably best. What bit depth is it recording at?

View Article

New 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 Article

New Post: Four channel audio INPUT

yes they will be interleaved, but it looks like integers. BitConverter.ToInt32(buffer, offset) will do it

View Article


New Post: Audio time resolution.

thanks Max, that is a good approach to override the WaveStream

View Article


New Post: truespeech decompress with naudio

just do new TrueSpeechWaveFormat()

View Article

Updated 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 Article

New 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 Article

New 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 Article


New 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 Article

Created 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 Article


New 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 Article

New 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 Article


New Post: Problem Converting To GSM610

here you go using (WaveFileReader reader = new WaveFileReader(Input))             {                 using (WaveFormatConversionStream Conveter = new...

View Article

New Post: Problem Converting To GSM610

try using Gsm610WaveFormat instead: using (WaveFileReader reader = new WaveFileReader(Input)) { using (var Conveter = new WaveFormatConversionStream(new Gsm610WaveFormat()), reader)) {...

View Article

New 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
Browsing all 5831 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>