New Post: Best strategy to avoid gaps in playing MP3s
Try changing "waveOutDevice = new WaveOut()" to "waveOutDevice = new WaveOutEvent()". This will move the decoding to a background thread so your UI updates don't affect the playback.This should also...
View ArticleNew Post: Best strategy to avoid gaps in playing MP3s
also, NumberOfBuffers should not be 64. It should be 2 or at most 3. You're giving the soundcard much more work than it needs by constantly cycling through very short buffers. Pushing latency up also...
View ArticleNew Post: How to increase volume of an audio file?
I have a bunch of audio files that are super quiet. I would like to increase the volume on these files. I was planning on using theAudioFileReader.Volume member to increase the volume and then save the...
View ArticleNew Post: How to increase volume of an audio file?
the reader volume is not telling you how loud the audio is, 1.0 simply means that every sample will be left at an unchanged volume. If you set volume to 2.0, then every sample value will be doubled,...
View ArticleNew Post: Best strategy to avoid gaps in playing MP3s
The change to WaveOutEvent and setting number of buffers to 2 did the trick.The latency I need to experiment with, so that it corresponds roughly to the wireless sending of the fire message and...
View ArticleNew Post: NAudio Audio Playback
Hi, I need to set audio output device(sound card) how can i assign that using naudio.
View ArticleNew Post: Best strategy to avoid gaps in playing MP3s
One thing to note about the "latency" is that really I shouldn't have called it latency. It is the total duration of all the buffers. Actual latency is half that if you are working with two buffers...
View ArticleNew Post: Multiple Audio Device
Hi, I need to set audio output device(sound card) how can i assign audio device using naudio in normal form in normal form. can you please tell the sample code. public...
View ArticleNew Post: NAudio Multiple audio out
Hi, In NAudio from where you are calling[ImportingConstructor] public AudioPlaybackPanel([ImportMany]IEnumerable<IOutputDevicePlugin> outputDevicePlugins){ InitializeComponent();...
View ArticleNew Post: NAudio Multiple audio out
To play sound in multiple soundcards, you need an output device per soundcard. So for example create two instances of WaveOut, and set the DeviceNumber property on each one.Mark
View ArticleNew Post: NAudio Multiple audio out
hi, In NAudio how I get output device and set device number... Thanks & Regards,Hinshin
View ArticleNew Post: NAudio Multiple audio out
var outputDevice = new WaveOut() outputDevice.DeviceNumber = 1;
View ArticleNew Post: WAV File Frequency Change
do you mean change the sample rate? If so you can use WaveFormatConversionStream or DmoResamplerStream
View ArticleNew Post: Audio Samplerate
Hi Mark - thanks for the reply. In Windows Vista and later, you can use the core audio library to control the sample rate from the application. It's a big pain though, so I've abandoned this effort...
View ArticleNew Post: Converting WAVs to AIFFs
Hi Mark and Keith,You're more than welcome to use the AiffFileWriter that I wrote, which is here: http://giawa.com/tutorials/src/AiffFileWriter.csIt depends on an IEEE floating point library, which is...
View ArticleNew Post: NAudio eating memory
I am using NAudio to play Mp3 files in my .NET 4 app. First of all I initialize WaveOut: IWavePlayer^ waveOutDevice = gcnew WaveOut(); Then I have 2 buttons. Play button :(code) volumeStream = gcnew...
View Article