-
-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[audio] Unable to hear any sound #3448
Comments
This user has also reported the same problem https://discord.com/channels/426912293134270465/1164761771073089546/1164761771073089546 |
I can hear the web audio tho, just not the desktop version. |
@wilsonsilva did you test the C examples? |
@raysan5 Yes, I executed all the C examples in the |
@gen2brain Thanks. I confirm that adding:
To the top of my root The logs changed from:
to
@raysan5 I'll leave it up to you to decide if this is an issue that warrants a global fix or I just happen to be an unlucky rare exception 😂 |
@wilsonsilva This is strange because Are you linking raylib statically or dynamically? Maybe @mackron could know more about the cause of this issue... |
@raysan5 I suppose that I'm doing both. StaticallyWhen I add these lines to
And I reload the CLion configuration, I see this log:
Then, I can run and hear all audio examples with no issues. I do it via CLion GUI. DynamicallyThis is my current goal. I am developing raylib-ruby. I'm converting all audio examples from C to Ruby. I don't get errors, but there's no sound. The instructions on how to compile the library dynamically are not very clear on the wiki. I tried to modify the homebrew formula, and I also tried a bash script. The examples run, but there's no audio:
|
@raysan5 This is already fixed in the dev branch mackron/miniaudio@b792ccd, it affects the latest macOS versions. |
I haven't read through all of the details here, but if you're running on an Apple platform and you're not hearing anything, the most likely reason is because it's failing to link at runtime and is falling back to the null backend. The changed noted by @gen2brain has a workaround that apparently works, but another option is to link at compile time instead of at runtime. More info here in section 2.2: https://miniaud.io/docs/manual/#Building |
@gen2brain @mackron thanks for your answers! yeah, that seems to be the issue! |
After fighting with the build flags, I finally managed to compile the macOS
Thanks everyone for your help. |
Updated to latest miniaudio dev as proposed by @gen2brain. It should work now... |
Please, before submitting a new issue verify and check:
Issue description
I can't hear any sound on any of the
audio
examples. No errors either.Environment
Model Name: MacBook Pro
Model Identifier: MacBookPro18,2
Chip: Apple M1 Max
Total Number of Cores: 10 (8 performance and 2 efficiency)
Memory: 64 GB
System Firmware Version: 10151.1.1
OS Loader Version: 10151.1.1
macOS Sonoma 14.0 (23A344) (didn't work with macOS Ventura either)
Issue Screenshot
Code Example
Logs
Troubleshooting
As suggested in Discord, I tried to set
AUDIO_DEVICE_SAMPLE_RATE
inconfig.h
to different values, including matching the same rate of the loaded file, but nothing worked.Please note that I'm not a C developer. I am developing ruby bindings for raylib and I noticed that none of my audio examples worked.
The text was updated successfully, but these errors were encountered: