CodePlex Project Hosting for Open Source Software
資料來源: http://naudio.codeplex.com/documentation
How do I...?
The best way to learn how to use NAudio is to download the source code and look at the two demo applications - NAudioDemo and NAudioWpfDemo. These demonstrate several of the key capabilities of the NAudio framework. They also have the advantage of being kept up to date, whilst some of the tutorials you will find on the internet refer to old versions of NAudio.
- Choose an audio output driver
- Play an MP3 File
- Convert an MP3 to WAV
- Play a WAV File
- Use the WavFileWriter class
- Play streaming MP3
- Implement Looped Playback
- Trim a WAV File
- Play a Sine Wave
- Merge MP3 Files
- Convert an AIFF file to WAV
- Work with Multi-Channel Audio
- Create an ID3v2 tag
Getting Started with NAudio – Downloading and Compiling
- Download a copy of the NAudio source code (or a pre-compiled version but the newest available code is available in source form first).
http://naudio.codeplex.com/SourceControl/list/changesets - The default project is set to the NAudio class library. Class Library’s don’t have anything to look at when you press F5. If this is your first time with NAudio, set the start-up project as NAudioDemo and then hit F5. The NAudioDemo project shows the base functionality you can utilise through your own project.
- In the BIN directory for the built solution, you can find a copy of the NAudio library for using and referencing in your own project. Make sure that you grab a copy of the NAudio.XML file as well if your copying it over to your own projects directory, that way you will have the intellisense documentation for use in Visual Studio when working with the NAudio API.
Additional Tutorials from OpenSebJ's blog (n.b. these are for NAudio 1.3):
- Tutorial 1: Introduction to Using NAudio
- Tutorial 2: Mixing Multiple Wave Files Together in Real Time
- Tutorial 3 - Sample Properties
- Tutorial 4 - Sample Reversing
- Tutorial 5 - Recording Audio
- Tutorial 6 - MIDI Interfacing
http://stackoverflow.com/
Last edited Nov 10 at 3:53 PM by markheath, version 28
沒有留言:
張貼留言