https://github.com/atypicalim/replay
a simple wrap for miniaudio to play sounds and music ...
https://github.com/atypicalim/replay
audio c game music sound
Last synced: 10 months ago
JSON representation
a simple wrap for miniaudio to play sounds and music ...
- Host: GitHub
- URL: https://github.com/atypicalim/replay
- Owner: Atypicalim
- Created: 2024-11-25T13:27:30.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2024-11-25T15:20:55.000Z (about 1 year ago)
- Last Synced: 2025-02-02T03:18:43.256Z (11 months ago)
- Topics: audio, c, game, music, sound
- Language: C
- Homepage:
- Size: 2.11 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Replay
### 0. Description
> a simple wrap for miniaudio to play sounds and music, you can use it in your game project to play audio files.
### 1. Usage
> load a music and play
```c
// init audio device
replay_InitAudioDevice();
// load and play
RMusic music = replay_LoadMusic("resources/country.mp3");
replay_PlayMusic(music);
// loop and update
while (1) {
replay_UpdateMusic(music);
}
// free after finish
replay_UnloadMusic(music);
replay_CloseAudioDevice();
```
> for more info please visit `replay.h` file
### 2. alternatives
- [raudio: simple and easy-to-use audio library based on miniaudio](https://github.com/raysan5/raudio)
- [miniaudio: a single file library for audio playback and capture.](https://github.com/mackron/miniaudio)