raylib icon indicating copy to clipboard operation
raylib copied to clipboard

[audio] Audio doesn't play on `PLATFORM_DRM` or `PLATFORM_RPI`

Open Trithilon opened this issue 1 year ago • 1 comments

Please, before submitting a new issue verify and check:

  • [ Y ] I tested it on latest raylib version from master branch
  • [ Y ] I checked there is no similar issue already reported
  • [ Y ] My code has no errors or misuse of raylib

Issue description

Audio examples do not play sound of a Raspberry Pi Zero 2 W.

Environment

Replicated on RPI02W piCore CLI - with and without DRM.

Code Example

Just run "make PLATFORM=PLATFORM_RPI" or "make PLATFORM=PLATFORM_DRM" against Raylib 4.2.0 and its examples on piCore (It works on Debian Buster Lite). Audio won't playback via HDMI. (Playback happens when using Desktop mode)

Trithilon avatar Aug 22 '22 12:08 Trithilon

Probably related to pulseaudio/whatever not being active.

TSnake41 avatar Sep 07 '22 15:09 TSnake41

Hey, I could try and take a look into this. Could you provide some more context? I see a lot of issues particularly regarding RPis and Audio/Middle Mouse Button here.

alvinphilips avatar Oct 04 '22 17:10 alvinphilips

@polarvoid Actually Raspberry Pi requires some more testing, afaik audio/gamepad worked ok in previous version.

raysan5 avatar Oct 04 '22 17:10 raysan5

If y'all need any help with that, I can take a look. I have a few Pis that I can test on.

alvinphilips avatar Oct 04 '22 17:10 alvinphilips

I just received my new RPi 4 and 3B+ - so happy to test stuff out as well.

Trithilon avatar Oct 04 '22 17:10 Trithilon

One can never have too many of em XD.

alvinphilips avatar Oct 04 '22 17:10 alvinphilips

I had no issues on Raspberry Pi OS Lite (64-bit, Debian 11 bullseye).

I used raylib 4.2 PLATFORM_DRM and played a .wav file using the audio jack.

Its a Raspberry Pi 3B+

JupiterRider avatar Oct 09 '22 15:10 JupiterRider

@JupiterRider : I was using RPI Zero 2 W, so there was no headphone jack. There was no HDMI sound. I'll check this at my end as well tomorrow now that I just got my RPI 4 and 3B+

Trithilon avatar Oct 10 '22 04:10 Trithilon

I think this issue is related to OS configuration, raylib is proven to work in similar platforms.

raysan5 avatar Oct 27 '22 11:10 raysan5