New Post: Time lost at end of MP3 file during WAV -> MP3 conversion using...
Matt, I've been using NAudio to convert WAV files to MP3 with some success. However, I've come across a problem that I hope you can help me with. I have some test audio files that when I use NAudio to...
View ArticleNew Post: How to Playback audio on a separate Thread
I just changed it to WaveOutEvent, not sure if I'm doing this right though, the Thread starts when I click on buttonPlay, the Thread ends immediately right after it starts, unless I use Sleep for a few...
View ArticleNew Post: Calculate pitch of wav file
Hi,can I know that does Naudio can calculate the pitch of a sound? I want to get the all pitch of the sound and plot a graph using the pitch that calculated. If possible tell me the code also so that I...
View ArticleNew Post: playing wav using byte
Hello, this Sample Code should help you to play a Wave File from Bytearray and specified position:Imports NAudio.Wave Imports System.IO Public Class Form1 Private Sub Form1_Load(ByVal sender As...
View ArticleNew Post: How to Playback audio on a separate Thread
You don't need to create the thread yourself, WaveOutEvent will do it for you when you call play.
View ArticleNew Post: Calculate pitch of wav file
NAudio can't give you the pitch of the sound. You have to process that yourself
View ArticleNew Post: How to Playback audio on a separate Thread
Oh I see. Thank you. And do you know if I can use WaveOutEvent with DirectSound?, or WaveOutEvent is already like the only driver output plugin available for this scenario?
View ArticleNew Post: How to Playback audio on a separate Thread
No, DirectSound works the same - it creates a thread. So you can use it instead.
View ArticleNew Post: Calculate pitch of wav file
I see. Can I obtain some information from wav file by using Naudio so that I can calculate it myself? Or do you know any other ways to get it? Mind to share? prefer c# code. Thanks a lot.
View ArticleNew Post: Time lost at end of MP3 file during WAV -> MP3 conversion using...
Ok, I think I've discovered something that might help. First, I'm using Windows Server 2012 so it might behave differently than Windows 8. Secondly, the MP3 codec I'm using to encode is listed as "MP3...
View ArticleNew Post: Time lost at end of MP3 file during WAV -> MP3 conversion using...
private void PerformEncode(IMFSinkWriter writer, int streamIndex, IWaveProvider inputProvider) { int maxLength = inputProvider.WaveFormat.AverageBytesPerSecond; var managedBuffer = new...
View ArticleNew Post: ISampleProvider - converting stereo to mono?
Is there anything built into NAudio that converts a stereo SampleProvider into a mono? I need to ensure the file is mono for my panningProvider to work.
View ArticleNew Post: locate the current float value of a wav according...
Hi, I have read a wav file into waveStream usig new NAudio.Wave.WaveFileReader. After that, I convert the waveStream into float[] buffer. Now I want to locate the float value of...
View ArticleNew Post: playing MP3 and sending PCM bytes over serial port
Hi Zahid, Any Progress , I am still have the same issue , and not work for me. Please advice if you made any progress. Regards, Waleed
View ArticleNew Post: Windows 8 background audio [solved]
Thank you a lot for this solution Jannera. For me too it works on my project, if I set AudioStreamCategory to Communications and not if I set to BackgroundCapableMedia. Have you find for which reasons...
View ArticleUpdated Wiki: Documentation
The NAudio Documentation WikiNAudio FAQWhat is NAudio?NAudio is an open source audio API for .NET written in C# by Mark Heath, with contributions from many other developers. It is intended to provide a...
View ArticleNew Post: NAudio source code modifications
Hi, We have recently been using the NAudio library to write some audio processing and RTP send and receive applications. We have had to make a few modifications to the source code that we downloaded...
View Article