New Post: G.727 Support
As far as I understand BlockAlign should be 0.5...However I will try different BlockAlignments affect the buffer size. Thank youÂ
View ArticleNew Post: G.727 Support
No, BlockAlign is the number of bytes that must be read together. If you want to read blocks of 819 bytes, then BlockAlign should be 819
View ArticleNew Post: Synthesis of a basic wave , and change the frequency
I've found this that's totally solved my problem --> http://msdn.microsoft.com/en-us/magazine/ee309883.aspx
View ArticleNew Post: G.727 Support
Now I understand! With a block align of 2048 I can process the blocks seemlessy now. Unfortunately that didn't fix the stumbling I experience. I will try further and keep you up to date.Ciao
View ArticleNew Post: asioOut and Serial input
Hej all!I build a 3d-sound programm (win Form) with NAudio, that is triggered via an input on the serial port. Great software! I got All the mixing: 2 to 6 channel done and played by the ASIO driver....
View ArticleNew Post: asioOut and Serial input
I haven't seen this one before, but maybe you are creating the ASIO object from a callback from the serial port that is on a non STA thread. Why not get back onto the GUI thread before creating ASIO?...
View ArticleNew Post: G.727 Support
Hi Mark,it seems that BlockAlign needs to be a divisor of 2880. Otherwise I get the mentioned stumbling. I will put up a minimalistic example... Bye
View ArticleNew Post: G.727 Support
privatestaticvoid Test() { WaveFormatEncoding tag = WaveFormatEncoding.ALaw;int sampleRate = 19200;int channels = 1;int bitsPerSample = 8;int blockAlign = 1024; // (channels * bitsPerSample) / 8;int...
View ArticleNew Post: G.727 Support
That is very odd, because blockAlign should be 1 for A-law. You can decompress each sample individually.Also, 19200 samples per second is a very odd wave sampling rate, and I'd be surprised if your...
View ArticleNew Post: PanSlider Object - How to use?
Hello,I´ am currently programming a small "DJ Software" (Just for Fun) and I want to use a PanSlider for controlling the volume of the left and right speaker. Is it possible?The "Pan_Changed"-Event is...
View ArticleNew Post: CallbackOnCollectedDelegate with ASIOOut
This is probably an error on my part. I'm calling Stop(), then Dispose(), then setting my asioOut instance to null all one line after the other. What do I have to do with callbacks to properly dispose...
View ArticleNew Post: Asio Channel offset pairs
Hi All,I was wondering if there was a way to display the asio channel offset in pair for stereo?eg channel offset 0 is the first channel on my card. Is it possable to display that asChannel 1+2?Thanks,...
View ArticleNew Post: Play multiple WAV files simultaneously?
Hey,I need to play multiple WAV files simultaneously. I found the MultiplexingWaveProvider class, but it does not support playing multiple inputs to one output. Is there a class/provider that would...
View ArticleNew Post: Asio Channel offset pairs
I'm not sure what you mean. What you display is up to you. If you are using channel offset 0 and writing two channels, you can call that "Channel 1+2" if you want.
View ArticleNew Post: Play multiple WAV files simultaneously?
There are a number of mixer classes in NAudio. The oldest is WaveMixerStream32, but I recommend using MixingSampleProvider with AudioFileReader as the inputs.Mark
View ArticleNew Post: CallbackOnCollectedDelegate with ASIOOut
I'd suggest waiting for the PlaybackStopped event to arrive before calling Dispose
View ArticleNew Post: PanSlider Object - How to use?
The PanSlider control is a very simple example control that returns values between -1.0 (left) and 1.0 (right), with 0.0 as centre.You would use it in conjunction with any class in NAudio that has a...
View ArticleNew Post: NAudio Performance
the big problem with .NET for very low latency is the garbage collector. When it kicks in it stops all threads from running and that can cause audio output glitches. There are some best practices for...
View ArticleNew Post: CallbackOnCollectedDelegate with ASIOOut
markheath wrote:I'd suggest waiting for the PlaybackStopped event to arrive before calling DisposeThat should do the trick. Thank you.
View ArticleNew Post: NAudio Performance
Would you recommend temporarily setting GCSettings.LatencyMode to GCLatencyMode.LowLatency temporarily while playback is being done? I set the latency mode back to what it was previously when the audio...
View Article