https://github.com/kid0h/sap
A simple cross-platform audio player made in C++
https://github.com/kid0h/sap
cpp ffmpeg-libraries miniaudio
Last synced: over 1 year ago
JSON representation
A simple cross-platform audio player made in C++
- Host: GitHub
- URL: https://github.com/kid0h/sap
- Owner: Kid0h
- Created: 2022-02-04T10:06:24.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2022-03-24T13:38:53.000Z (about 4 years ago)
- Last Synced: 2025-01-12T22:12:33.905Z (over 1 year ago)
- Topics: cpp, ffmpeg-libraries, miniaudio
- Language: C++
- Homepage:
- Size: 579 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SAP: Simple Audio Player
A simple cross-platform audio player made in C++
## Usage
```
./sap [volume]
```
example usage:
```bash
./sap "ON TOP.mp3" 25
```
## Dependencies
- [ffmpeg libraries (v4.4 >=)](https://github.com/FFmpeg/FFmpeg) - for audio decoding
- [miniaudio (included)](https://github.com/mackron/miniaudio) - for audio playback
- [fmt (included as a submodule)](https://github.com/fmtlib/fmt) - for easier logging
## Building from source
You'll need to have the ffmpeg libraries already installed on your machine.
if you're using `linux`, CMake will try to automatically detect the ffmpeg libraries and use them.
Please make sure you clone the repository using `--recursive` to clone the needed submodules too.
```
git clone --recursive https://github.com/Kid0h/SAP
cd SAP
mkdir build && cd build
cmake -DCMAKE_BUILD_TYPE=Release ..
cmake --build . --config Release
```
If you're using `Windows` or if CMake can't find the ffmpeg libraries on your machine - you'll need to specifiy an include directory and a link file for each ffmpeg component one by one to CMake, for example:
```bash
cmake -DCOMPONENT_LIBRARIES="C:/ffmpeg/build/component/lib/component.lib" -DCOMPONENT_INCLUDE_DIRS="C:/ffmpeg/build/component/include" ..
```
## Reaching out
If you have any issues or questions - you can open an issue [here](https://github.com/Kid0h/SAP/issues/new)!