Hi, thanks for your time on this post.
I am new to raylib, and I am unable to hear sound when I run the Unix Executable File. I tried to run the same script on my windows machine, I can hear sound on that machine
I am using a M2 clip macbook with MacOS 14.0.
This is the code
#include <raylib.h>
using namespace std;
int main()
{
const int screenWidth = 800;
const int screenHeight = 600;
InitWindow(screenWidth, screenHeight, "My first RAYLIB program!");
SetTargetFPS(60);
InitAudioDevice();
Sound sound = LoadSound("eating-sound.mp3");
SetSoundVolume(sound, 1.0f);
PlaySound(sound);
while (WindowShouldClose() == false)
{
BeginDrawing();
ClearBackground(BLACK);
EndDrawing();
}
UnloadSound(sound);
CloseAudioDevice();
CloseWindow();
return 0;
}```
I have attached the log I got when I run ```./main```
The file seems to loaded successfully, yet nothing can be heard.
I have also tried to run the audio example on my local machine https://www.raylib.com/examples/audio/loader.html?name=audio_sound_loading. I also cannot hear anything (I have downloaded the audio files to my local as well).
Thank you so much for your help!