Skip to content

coun7zero/audioplayer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AudioPlayer

Overview

AudioPlayer is a simple Rust-based application for playing .wav audio files from a specified folder. It supports playback controls such as play/pause, skip to the next track, and return to the previous track using keyboard inputs.

Features

  • Play .wav files: Automatically scans a folder and loads .wav files into a playlist.
  • Playback controls:
    • p: Toggle play/pause.
    • j: Play the previous track.
    • k: Play the next track.
  • Sample playback: Uses CPAL for audio output and supports .wav files with matching sample rates.
  • Error handling: Ensures that the files match the expected sample rate and channels.

Installation

  1. Clone this repository or copy the source code into your Rust project.
  2. Build the project:
     cargo build --release
  3. Compile and run the application, passing the folder containing .wav files as an argument:
     cargo run --release -- <folder_path>

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages