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

New Post: simple vb.net Naudio volume meter

$
0
0
If I remember correctly, MasterPeakValue is the OUTPUT sample of the mixer. Not the INPUT of a microphone or any other input device.

Reviewed: NAudio 1.8 (Mar 07, 2017)

$
0
0
Rated 5 Stars (out of 5) - I am working on my own little project that gets to the audio using the NAudio library. Just wanted to say "good work and thanks!".

New Post: Doppler effect.

$
0
0
If I understand correctly, in order to achieve a doppler effect in my wav file I have to alter its frequency. In my project with the Naudio library I have implemented a Isampleprovider and have access to the individual samples(float array). What do I have to do now to achieve the doppler effect(change the frequency?). Thanks.

New Post: MediaFoundationReader Error with AIFF file

$
0
0
Hi Guys,
First, cudos to Mark H and the other contributors who did the MediaFoundationReader development. Nice job. And with the addition of HTTPS support, it's making the .Net MediaPlayer look very lame by comparison.


I'm getting the error below on AIFF files. The test file plays fine with standard .Net MediaPlayer class. But MediaFoundationReader blows up. And the same exact code path works fine with Mp3, Wma, and Wav files.
  • Has anyone successfully tested AIFF with MediaFoundationReader ?
error message: The byte stream type of the given URL is unsupported. (Exception from HRESULT: 0xC00D36C4) 
stack trace
   at NAudio.MediaFoundation.MediaFoundationInterop.MFCreateSourceReaderFromURL(String pwszURL, IMFAttributes pAttributes, IMFSourceReader& ppSourceReader)
   at NAudio.Wave.MediaFoundationReader.CreateReader(MediaFoundationReaderSettings settings)
   at NAudio.Wave.MediaFoundationReader.Init(MediaFoundationReaderSettings initialSettings)
   at NAudio.Wave.MediaFoundationReader..ctor(String file)
   at Breakthru.DXSound.SecondaryBufferNA.CreateInputStream(String fileName) in C:\1-DEV\CS2015\SoundDX\SoundDX\SecondaryBufferNA.cs:line 438
   at Breakthru.DXSound.SecondaryBufferNA.CreateAndInitializeSoundBuffer() in C:\1-DEV\CS2015\SoundDX\SoundDX\SecondaryBufferNA.cs:line 318
My code looks essentially like this:
        WaveOut waveOutDevice = new WaveOut()
                {
                    DesiredLatency = 100,
                    NumberOfBuffers = 2,
                };
        WaveChannel32 inputStream = null;
                WaveStream mediaFileReader;
                mediaFileReader = new MediaFoundationReader(fileName); 
                inputStream = new WaveChannel32(mediaFileReader);
                waveOutDevice.Init(inputStream);  <== program gets above exception on this call
                

New Post: Doppler effect.

$
0
0
Not included in NAudio, you have to code the sample manipulation yourself.

New Post: MediaFoundationReader Error with AIFF file

$
0
0
NAudio contains an AiffFileReader class, which you can use alternatively

New Post: MediaFoundationReader Error with AIFF file

$
0
0
Hi Freefall, thanks for the reply.
Yeah, I get the same error from the AiffFileReader. So maybe it's something weird about the Aiff file I'm testing with. Or maybe the Klite codec package configuration on my system is blocking aiffs.

New Post: win vb.net 150$ cash prize !!!


New Post: win vb.net 150$ cash prize !!!

$
0
0
???

This forum is for support, not for adverts!

New Post: MediaFoundationReader Error with AIFF file

$
0
0
Then I assume it´s probably some kind of corrupt or experimental aiff file

New Post: Mid/Side Processing

$
0
0
I am new to this library, and just checked documentation, but couldn't find anything on mid/side channel processing. What I want to do is take a wav file, split it on mid and side channels, then replace the side channel with another mono audio file and finally encode it all together back to wav. Would be even better if I could do all of this with mp3. Any help is appreciated...

New Post: Waveform using WasapiLoopbackCapture WPF thread updating ui

$
0
0
Yes, the title: "Waveform using WasapiLoopbackCapture WPF thread updating ui "
WasapiLoopbackCapture dosent draw the waveform on the UI form.
If you are sombody else have a simple sample code that can capture and draw wave form on the UI tthread using WasapiLoopbackCapture it would be very appreciated . But i believe it is not possible.
Thank you

New Post: Counting beeps at start of a WAV file?

$
0
0
I'm totally new to the audio processing area so am hoping this won't be too painful. I need to count a series of beeps at the start of a .wav file and the end time of the last beep in the series. Beeps are 3300Hz and150ms length with a 150ms delay in between. I looked through the SampleAggregator class in the demo but am a bit stumped with what to do with it and what a FFT does. File details below.

Opening C:\Video Analysis\REC004.wav
Pcm 16000Hz 2 channels 16 bits per sample
Extra Size: 0 Block Align: 4 Average Bytes Per Second: 64000
WaveFormat: 16 bit PCM: 16kHz 2 channels
Length: 43268808 bytes: 00:11:16.0750000
Chunk: LIST, length 26
49 4E 46 4F 49 53 46 54 0E 00 00 00 4C 61 76 66 35 37 2E 35 36 2E 31 30 30 00

New Post: New Member and some questions

$
0
0
Hello: I'm a new member to codeplex, and have a couple of questions about some strange (to me) text in the source code of a couple of the naudio modules. The first anomaly I see is on line 88 of ASIODriverExt.cs. public AsioDriver Driver => driver; I have Visual Studio Team System 2008, which was given to me. I can't afford to upgrade as I'm retired. When I try to compile I get error message about this line of code. There are other anomalies. Anyone care to walk me through a discussion about some of these anomalies? Regards, Karin

Updated Wiki: Home

$
0
0

NAudio Overview

IMPORTANT The latest NAudio source code can now be found on GitHub. For now, CodePlex remains the place to access documentation, discussions and downloads.

NAudio is an open source .NET audio and MIDI library, containing dozens of useful audio related classes intended to speed development of audio related utilities in .NET. It has been in development since 2002 and has grown to include a wide variety of features. While some parts of the library are relatively new and incomplete, the more mature features have undergone extensive testing and can be quickly used to add audio capabilities to an existing .NET application. NAudio can be quickly added to your .NET application using NuGet.

NAudio demo project showing an MP3 file playing:
naudiodemo.png

NAudio WPF Project showing waveform visualisation and spectrum analyser:
NAudioWPF.png

Latest News

For the latest news and more documentation on NAudio, visit Mark Heath's blog.
  • 27 Dec 2016 NAudio 1.8 released. Read the release notes
  • 24 Nov 2014 NAudio 1.7.2 Released with lots of minor enhancements and bugfixes
  • 4 Nov 2013Programming Audio with NAudio training course released on Pluralsight
  • 29 Oct 2013 NAudio 1.7 Released. Read the release notes
  • 26 Oct 2012 NAudio 1.6 Released. Read the release notes
  • 9 Sep 2012 ASIO Recording Support added
  • 19 Dec 2011 NAudio 1.5 Released. Read the release notes
  • 20 Apr 2011 NAudio 1.4 Released. Read the release notes
  • 15 Apr 2011 NAudio demo now shows how to select output devices (for WaveOut, DirectSound, WASAPI and ASIO), and can play 8 bit, 16 bit, 24 bit, and 32 bit float WAV files. Fixed a longstanding ASIO issue.
  • 7 Nov 2010 Major improvements to Mp3FileReader
  • 10 Oct 2009 Version 1.3 Released. Read the release notes
  • 20 Sep 2009 We are getting close to feature complete for 1.3. Last chance to get in any feedback on the API
  • 26 Aug 2009 WPF Waveform drawing demo project including FFT added
  • 28 Feb 2009 Lots of new stuff is being added and planned, so do check out the Source Code tab to have a sneak peak at what's coming in 1.3
  • 26 June 2008 Version 1.2 Released. Read the release notes

NAudio Features

  • Play back audio using a variety of APIs
    • WaveOut
    • DirectSound
    • ASIO
    • WASAPI (Windows Vista and above)
  • Decompress audio from different Wave Formats
    • MP3 decode using ACM or DMO codec
    • AIFF
    • G.711 mu-law and a-law
    • ADPCM
    • G.722
    • Speex (using NSpeex)
    • SF2 files
    • Decode using any ACM codec installed on your computer
  • Record audio using WaveIn, WASAPI or ASIO
  • Read and Write standard .WAV files
  • Mix and manipulate audio streams using a 32 bit floating mixing engine
  • Extensive support for reading and writing MIDI files
  • Full MIDI event model
  • Basic support for Windows Mixer APIs
  • A collection of useful Windows Forms Controls
  • Some basic audio effects, including a compressor

Projects Using NAudio

NAudio currently is used to support a number of audio related utilities, some of which may be moved to be hosted on CodePlex in the future. If you have used NAudio for a project, please get in touch so we can post it here.
  • Skype Voice Changer - Modify your voice with audio effects while talking on Skype
  • .NET Voice Recorder - Record your voice, save to MP3, and visualise the waveform using WPF. Now includes autotune
  • Pree - Record spoken word without the need for editing.
  • MIDI File Mapper - Utility for mapping MIDI drum files for use on other samplers
  • MIDI File Splitter - Split MIDI files up at their markers
  • SharpMod - managed port of MikMod, can play mod files in both WinForms and Silverlight
  • NVorbis - Fully managed Vorbis decoder, with support for NAudio
  • Practice# - Windows tool for practicing playing an instrument with playback music. Includes FLAC playback support and an equaliser for NAudio.
  • WPF Sound Visualization Library - beautiful waveform and spectrum analyzer code written for WPF, comes with NAudio sample
  • Q2Cue - application for running audio cues in a theatrical or other performance related settings
  • TuneBlade - Stream Windows' audio to AirPlay receivers
  • Teachey Teach - utility to help English language conversation teachers generate feedback for students
  • Sound Mill - an audio player, list organizer and automation manager
  • Bravura Studio - a modular, extensible application and platform for creating and experimenting with music and audio.
  • musiX
  • SIPSorcery - .NET softphone framework
  • Squiggle - A free open source LAN Messenger
  • Helix 3D toolkit - Multi-format audio player
  • airphone-tv - A revival of axStream to implement control through the iPhone
  • JamNet - a Silverlight drum sample player
  • Jingle Jim - Jingle Software (German language)
  • All My Music
  • iSpy - Open Source Camera Security Software
  • RadioTuna - Online internet radio player
  • Fire Talk New - chat program
  • AVR Audio Guard - utility to fix a HDMI related issue
  • Locutor da Hora - Educational app simulating a radio studio
  • uAudio - Audio player component for Unity3D
  • Radio Pro - Unity 3D Radio Asset
  • NAudio DTMF - NAudio DTMF example code

More Info

For more information, please visit the NAudio Documentation Wiki

Donate

NAudio is a free open source project that is developed in personal time. You can show your appreciation for NAudio and support future development by donating.
Donate

New Post: New Member and some questions

$
0
0
That line is the short form for a property declaration, available in the newer VS versions

New Post: New Member and some questions

$
0
0
Thank you for the response .Not quite sure if this discussion was still active. After a bit of tedious research I finally found out what you mentioned.
Related to C# version 6.0 and later versions of .NET. I only have VS2008 so am limited to .NET3.5. Retired and no money to purchase upgrades.
Thanks again. Karin

New Post: Using AsioDriver.cs and AsioDriverExt.cs

$
0
0
Trying to figure out how both of these modules are used. Together?? Separately??
I've written a sample program using Rob Philpot's ASIO C++ code. But I need to get away
from the COM issues with Rob's implementation. I recently came across NAudio and it looks
promising. But having difficulties extracting from the Demo stuff how some of the library modules might go together for ASIO streaming. I'm OK with the network part having the working code from my previous effort with Rob Philpot's code embedded in my application. ANY HELPERS OUT THERE???????
Karin

New Post: Waveform using WasapiLoopbackCapture WPF thread updating ui

New Post: Using AsioDriver.cs and AsioDriverExt.cs

$
0
0
I figured out how use these two modules. I've progressed to the point of instantiating the driver successfully, and have created all the necessary hooks, with the exception of the callbacks. I'll start another thread about the use of the callbacks. Karin
Viewing all 5831 articles
Browse latest View live


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