Free .NET Library for Manipulating Audio Documents
Render, Encode and Stream Audio File Format.
LibVLCSharp is an open source API to render, ecnode and deco Audio file fromats. Using The API, you can not only play all type of audio file formats including MP3, MPEG, AAC, TrueAudio and more but, can also play them on any platform including Windows, Linux, Mac, Android, iOS and TVs. In short, the API supports most of the features supported by the VLC desktop app for free.
LibVLCSharp is a free software released under the LGPL. The developer can create their own audio manipulation application using the API. The developers can work with a wide range of Audio file formats for metadata manipulation. Furthermore, you can play 3D audio playback, use audio filters, supports audio passthrough with APDIF and HDMI and more.
At A Glance
An overview of LibVLCSharp features.
- Play Audio
- Cross Platform
- Efficient Decoding
- Playback Adudio
- HDR Support
- SPDIF Support
- HDMI Support
- Audio Filters
- 3D Audio Playback
LibVLCSharp supports popular Audio file formats listed below.
The API works with .NET Standard 1.1 and 2.0, .NET Framework 4.0 or later, .NET Core, Android, iOS, tvOS.
Getting Started with LibVLCSharp
The best way to install to insall LibVLCSharp is via NuGet you can run the following command and install LibVLCSharp in you application.
Install LibVLCSharp from NuGet
Install-Package LibVLCSharp -Version 3.4.8
Play Audio with Free C# API LibVlcSharp
LibVLCSharp allows .NET programmers to play all aduio file formats easily. In order to run an audio file format, the developer can start by initializing LibVLC main object, and then load audio file by using Media class that is responsible for proving information about the file format. Once you have your audio file loaded, you can open new instance of MediaPlayer to play the audio file using MediaPlayer.Play() method.
Retrieve Audio Track Info via C#
The open source API LibVLCSharp allows .NET developers to retrieve Audio track information programatically. In order to extract the information, first you need to load the file using the Media class and check if the file is a propert Audio track. After that, you can extract the track information by accessing Track properties like Track.Data.Channels, Track.Data.Rate and more.