added reaaly basic audio

This commit is contained in:
herbglitch 2023-09-13 21:32:30 -06:00
parent 46e26e41e5
commit 9bfcd5552e
8 changed files with 111 additions and 3 deletions

View file

@ -12,7 +12,7 @@ void ARC_Window_Create(ARC_Window **window, ARC_WindowInfo *info){
return;
}
if(SDL_Init(SDL_INIT_VIDEO) < 0){
if(SDL_Init(SDL_INIT_VIDEO | SDL_INIT_AUDIO) < 0){
arc_errno = ARC_ERRNO_INIT;
printf("Error: initializing SDL\nSDL Error: %s\n", SDL_GetError());
return;