New Post: Play position
OK, I have done this, but this method is rather slow. While playing, I can hear something like ticks. This is my code. (These ticks are only when I draw the line. The line is drawn on WaveViewer. In...
View ArticleNew Post: Play position
how are you setting the interval? should be using TimeSpan.FromMilliseconds(100); Try 500ms as well if you are still getting perf issues Also what is your OnPlayProgress handler doing? you can optimise...
View ArticleNew Post: Decoding IeeeFloat 32 bits per channel
I am attempting to decode the data in a class derived from WaveStream via the Read() function. WaveFormat indicates that the data is IeeeFloat, 32 bits per channel. i am having real trouble decoding...
View ArticleNew Post: Decoding IeeeFloat 32 bits per channel
It is 32 bits per sample - that means four bytes for left, four bytes for right. use BitConverter.ToFloat() to convert bytes into floats.
View ArticleNew Post: Decoding IeeeFloat 32 bits per channel
ok, thanks. i was assuming a sample contains both left and right channels. this makes much more sense.
View ArticleNew Post: Play position
Interval is set in constructor, and timer is stopped. indicatorTimer.Interval = TimeSpan .FromMilliseconds(100); With interval set to 500 performance is so much better. But now I suffer from lack of...
View ArticleNew Post: Decoding IeeeFloat 32 bits per channel
"use BitConverter.ToFloat() to convert bytes into floats." just for other peoples benefit. this is actually called BitConverter.ToSingle() for some strange reason
View ArticleNew Post: Decoding IeeeFloat 32 bits per channel
oh yeah, I forgot they called it ToSingle(),
View ArticleNew Post: Play position
I'm surprised this is hurting performance that badly. What buffer durations are you using and what IWaveOut implementer?
View ArticleNew Post: Play position
What are buffer durations?I don't use any IWaveOut. Just WaveStream(WaveFileRader) and DirectSoundOut
View ArticleNew Post: Broadcast Wave Files
So far so good. Haven't had any problems with files in my sound library (about 1 TB of files). Larry
View ArticleNew Post: Four channel audio INPUT
Please could you provide me your code for initialisation ? I try to use the MAYA44 Soundcard with 4 channels, but no success.
View ArticleNew Post: Problem Converting To GSM610
you'll need to do your own loop to use buffer sizes that are multiples of GSM block align. Look in the ssource for the code to WaveFileWriter.CreateWaveFile - it is only a few lines of code.
View ArticleNew Post: WaveViewer loses image of waveform - problem with Position property
why are you using RawSourceWaveStream for a WAV file? Just use WaveFileReader. The point of it is when you have raw audio data in a stream/file but no WaveFormat info.
View ArticleNew Post: Play position
you can set buffer sizes on DirectSoundOut, but I suspect you are using the default. You might need to use a profiler to find out what is taking the most time
View ArticleCommented 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: connect input channels and output channels??how?
i want to connect one input channels in pro-40 to some output channels can i do it with naudio? if answer is yes , which class i must use? if no , can you guide me to use which driver or dll ?? (C# or...
View ArticleNew Post: byte array to WAV?
Hi, i have a project that needs to convert an ASCII text file or a BIN file to a WAV file. I understand the formats of the files but my coding is not very strong. I can read the ASCII file, that...
View ArticleNew Post: WasapiCapture not reusable
I've been writing an app that records chunks of input audio to multiple files, with gaps between, but I discovered that if I try a call sequence which essentially boils down to this: WasapiCapture...
View ArticleNew Post: byte array to WAV?
Hi Mike, The WaveFileWriter class has a WriteSample method you can call for each float in your input file Marl
View Article