Last active
September 24, 2025 03:56
-
-
Save SachinDas246/76aaa33e77d19b89ce2622c875fc2127 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include "raylib.h" | |
| #include "audio_player.h" | |
| struct AudioDataObject audio_coin; | |
| struct AudioDataObject audio_wing; | |
| struct AudioDataObject audio_kick; | |
| void audio_player_awake(){ | |
| InitAudioDevice(); | |
| audio_coin.sound = LoadSound("res/audio/coin.ogg"); | |
| audio_wing.sound = LoadSound("res/audio/wing.ogg"); | |
| audio_kick.sound = LoadSound("res/audio/kick.ogg"); | |
| } | |
| void audio_player_start(){ | |
| } | |
| void audio_player_update(){ | |
| } | |
| void audio_player_play_coin_sound(){ | |
| PlaySound(audio_coin.sound); | |
| } | |
| void audio_player_play_wing_sound(){ | |
| PlaySound(audio_wing.sound); | |
| } | |
| void audio_player_play_kick_sound(){ | |
| PlaySound(audio_kick.sound); | |
| } | |
| void audio_player_destroy(){ | |
| UnloadSound(audio_coin.sound); | |
| UnloadSound(audio_wing.sound); | |
| UnloadSound(audio_kick.sound); | |
| CloseAudioDevice(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment