Skip to content

Files

Latest commit

 Cannot retrieve latest commit at this time.

History

History
38 lines (25 loc) · 1022 Bytes

README.md

File metadata and controls

38 lines (25 loc) · 1022 Bytes

PlaySoundCS

This silly project demonstrates how to play an MP3 file using LibVLCSharp in a C# console application.

Prerequisites

Installation

  1. Install the .NET Core SDK from the official website.
  2. Add the LibVLCSharp library to your project by running the following command:
    dotnet add package LibVLCSharp
    dotnet add package VideoLAN.LibVLC.Windows

Usage

  1. Clone the repository or download the source code.
  2. Navigate to the project directory.
  3. Build the project:
    dotnet build
  4. Run the project with the path to an MP3 file and optionally an integer to specify the volume (0-100) as arguments. If the volume is not specified, it defaults to 50:
    dotnet run -- "path/to/your/file.mp3" 50

License

Do whatever you want