DUCKWAVE is a straightforward audio player written in C, designed for simplicity and ease of use. It supports playing multiple audio formats and offers basic controls such as play, pause, and stop. The project is built with minimal dependencies and is focused on providing a user-friendly experience for playing audio files from the terminal.
Ensure you have the following libraries installed:
libmpg123
libao
libavcodec
libavformat
On Debian/Ubuntu systems, you can install these using:
sudo apt-get install libmpg123-dev libao-dev libavcodec-dev libavformat-dev
clang main.c playmp3.c -o playmp3 -lmpg123 -lao -Bstatic
chmod +x install.sh
Run the script:
./install.sh
This will create an executable called mp3player in your current directory.
- Add your mp3 file to the project directory.
- In the main() function of main.c, replace "add you music here .mp3" with your mp3 file name.
- Compile the code.
- Run the executable:
./mp3player
Important
Please note that this project is still under development and may be subject to changes and improvements.
Contributions to this project are welcome. Please follow these steps to contribute:
- Fork the repository.
- Create a new branch for your feature or bug fix.
- Commit your changes.
- Push to the branch.
- Submit a pull request.