# rustpat [![crates.io](https://img.shields.io/crates/v/rustpat.svg)](https://crates.io/crates/rustpat) ![cicd](https://github.com/tnewman/pat/workflows/PAT%20CI/CD/badge.svg) rustpat is a Rust library that makes playing audio simple. rustpat uses FFmpeg to provide robust support for virtually any audio format and SDL2 to play back audio. ## Prerequisites Install [Prerequisites](https://github.com/tnewman/pat#Prerequisites) before installing. ## Example ```rust extern crate rustpat; fn main() { let pat = rustpat::PAT::new().unwrap(); // Play a file pat.play("amerika.mpga").unwrap(); // Skip the current file pat.skip().unwrap(); // Pause audio playback pat.pause().unwrap(); // Resume audio playback pat.resume().unwrap(); } ```