This is the library version of Minau, a music player built directly on Symphonia and CPAL. It provides simple functionality for playing audio from local files or URLs.
Key Features
- Wide Format Support: Can decode many audio formats supported by Symphonia, such as MP3, FLAC, Ogg Vorbis, WAV, and more.
- Cross-Platform: Thanks to CPAL, audio playback is supported on major platforms including Windows, macOS, and Linux.
- Network Streaming: Supports playing music via HTTP/HTTPS.
- Metadata Retrieval: Uses Lofty to read track tags (artist, album, etc.) and track duration.
- Playlist Support: Can parse playlists in M3U format.
Installation
Add the following line to your Cargo.toml:
// filepath: Cargo.toml
// ...existing code...
[]
= "0.1.0"
// ...existing code...
Usage
Here is a basic example for playing a local music file:
use Player;
use Duration;
License
This project is released under the BSD-3-Clause license.