Skip to content
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

No sound in GNU/Linux distributions that use *just* ALSA #1511

Closed
shackra opened this issue Mar 14, 2015 · 24 comments
Closed

No sound in GNU/Linux distributions that use *just* ALSA #1511

shackra opened this issue Mar 14, 2015 · 24 comments

Comments

@shackra
Copy link

shackra commented Mar 14, 2015

I opened one of my projects to check something, and I noticed that the game background music wasn't audible anymore. When I had Pulseaudio, the music and sound were played without problem, but now that I get rid of it, I cannot hear anything.

I compiled Godot from the source code hosted here in Github two days ago.

@shimpe
Copy link

shimpe commented Mar 25, 2015

not a solution to your problem, but perhaps interesting to know: official godot for me requires jack to get audio

with source code builds from github i can use pulseaudio (i haven't checked if jack is also still supported)

@shackra
Copy link
Author

shackra commented Apr 2, 2015

or annoy Juan and Ariel to fix what is not working for you.

Psss, @reduz and @punto- !

@reduz reduz closed this as completed in 87c51b6 Apr 12, 2015
@shackra
Copy link
Author

shackra commented Apr 12, 2015

thank you!

@reduz
Copy link
Member

reduz commented Apr 12, 2015

please test though

On Sun, Apr 12, 2015 at 5:31 PM, Jorge Araya Navarro <
notifications@github.com> wrote:

thank you!


Reply to this email directly or view it on GitHub
#1511 (comment).

@shackra
Copy link
Author

shackra commented Apr 12, 2015

did the test, there is no sound! D:

However, I saw Godot detecting that in my machine there's no Pulseaudio and switched to ALSA.

But again, no sound D:

@reduz
Copy link
Member

reduz commented Apr 12, 2015

if it said that, it means the alsa driver initialized correctly.. there
must be a different reason why audio is not being heard... may be related
to your setup?

On Sun, Apr 12, 2015 at 6:04 PM, Jorge Araya Navarro <
notifications@github.com> wrote:

did the test, there is no sound! D:

However, I saw Godot detecting that in my machine there's no Pulseaudio
and switched to ALSA.

But again, no sound D:


Reply to this email directly or view it on GitHub
#1511 (comment).

@shackra
Copy link
Author

shackra commented Apr 12, 2015

may be related to your setup?

I can hear my music with Clementine and videos from the web browser without problem!

@reduz
Copy link
Member

reduz commented Apr 12, 2015

may be related to your setup.. try doing this:

sudo fuser -fk /dev/snd/pcm*

then run godot and let me know if there is audio

On Sun, Apr 12, 2015 at 7:51 PM, Jorge Araya Navarro <
notifications@github.com> wrote:

may be related to your setup?

I can hear my music with Clementine and videos from the web browser
without problem!


Reply to this email directly or view it on GitHub
#1511 (comment).

@shackra
Copy link
Author

shackra commented Apr 13, 2015

Nop. Still no music!

To be sure, I played the song with smplayer, everything works fine. Despite the switch, Godot emits no sound :(

@SuperUserNameMan
Copy link
Contributor

No offense to you Shackra, but your OS looks quite special.

When mainstream Linux distro rely on full Desktop manager, you uses a tiling window manager that poses you problem with Godot.
When mainstream Linux distro rely on Pulseaudio that was working fine with Godot, you remove it to find out you have no more sound with Godot.

What is this Linux distro that you use and that goes backward in time instead of evolving ?
And what does it have that is so special that one should favor it in spite of mainstream Linux distro ?

@Calinou
Copy link
Member

Calinou commented Apr 13, 2015

What is this Linux distro that you use and that goes backward in time instead of evolving ?

Software monocultures are never a good thing (it's how stuff like Heartbleed happens). This isn't Windows.

@reduz
Copy link
Member

reduz commented Apr 13, 2015

I think his problem is more like ALSA' s fault. ALSA has always been an
enormous and bloated piece of shit. A terrible example of overdesign . I
say this as audio developer (worked making audio apps and devices using
embedded linux for some years), it's just bad.

On Mon, Apr 13, 2015 at 8:57 AM, Calinou notifications@github.com wrote:

What is this Linux distro that you use and that goes backward in time
instead of evolving ?

Software monocultures are never a good thing. This isn't Windows.


Reply to this email directly or view it on GitHub
#1511 (comment).

@shackra
Copy link
Author

shackra commented Apr 13, 2015

@UsernameIsAReservedWord sure, I use Parabola GNU/Linux-libre, I can install and remove anything I want from it according to my particular needs. Parabola removes proprietary software from Arch Linux, a mainstream GNU/Linux distro that do not ship ALSA, Pulseaudio, or both, by default.

I removed Pulseaudio because it was failing once every hour while playing movies, forcing me to close the application, open it again and play the movie where it was left before the error. Pulse result to be very annoying.

@reduz how can I help you debugging Godot with that piece of shit? feel free to put more debug output in Godot and I'll report it back to you after testing!

@SuperUserNameMan
Copy link
Contributor

@shackra : well, Pulseaudio was probably not configured properly if it posed that much problems. It usually works well with most other distro.

I've looked at https://github.com/thestk/rtaudio and found they have made some little updates to their code relating to ALSA. Maybe it would worth a try to compile Godot with those updated Rtaudio files and see if it improves or solve your audio problems ?

@shackra
Copy link
Author

shackra commented May 18, 2015

re-open, pls!

@shackra
Copy link
Author

shackra commented Jul 22, 2015

Ok, will do a round of some weeks of bugfixing. Please update your favorite issues so they are easier to find on github! Add a comment or create new ones if not there.

Well :)

@reduz
Copy link
Member

reduz commented Jul 22, 2015

I wish i could do much about this, but I honestly have no idea why alsa
fails for you. Alsa-only backend seems to work fine for me if I try.
It seems it has to do with your configuration but I have no way to tell

On Wed, Jul 22, 2015 at 4:59 PM, Jorge Araya Navarro <
notifications@github.com> wrote:

Ok, will do a round of some weeks of bugfixing. Please update your
favorite issues so they are easier to find on github! Add a comment or
create new ones if not there.

Well :)


Reply to this email directly or view it on GitHub
#1511 (comment).

@shackra
Copy link
Author

shackra commented Jul 22, 2015

Well... I don't have anything fancy for ALSA regarding it's configuration, I use the stock default
configuration.

Juan Linietsky writes:

I wish i could do much about this, but I honestly have no idea why alsa
fails for you. Alsa-only backend seems to work fine for me if I try.
It seems it has to do with your configuration but I have no way to tell

On Wed, Jul 22, 2015 at 4:59 PM, Jorge Araya Navarro <
notifications@github.com> wrote:

Ok, will do a round of some weeks of bugfixing. Please update your
favorite issues so they are easier to find on github! Add a comment or
create new ones if not there.

Well :)


Reply to this email directly or view it on GitHub
#1511 (comment).


Reply to this email directly or view it on GitHub:
#1511 (comment)

Pax et bonum.
Jorge Araya Navarro.
ES: Diseñador Publicitario, Programador Python y colaborador en Parabola GNU/Linux-libre
EN: Ads Designer, Python programmer and contributor Parabola GNU/Linux-libre
EO: Anonco grafikisto, Pitino programalingvo programisto kai kontribuanto en Parabola GNU/Linux-libre
https://es.gravatar.com/shackra

@ronchaine
Copy link
Contributor

It is not just him, I run Arch without pulse (since it doesn't play nice with my sound card), and there is no audio with ALSA. fuser /dev/snd/* shows godot process there, but no audio. I don't know how to debug further, though.

@ronchaine
Copy link
Contributor

Actually, I think I can hear continuous faint static.

@reduz
Copy link
Member

reduz commented Jul 23, 2015

Alsa without Pulse works for me, so there isn't much I can do. How about
you try the following:

fuser -fk /dev/snd/pcm*

to make sure nothing is using the audio device

then try running Godot?

Does it work this way?

On Thu, Jul 23, 2015 at 11:00 AM, Jari Ronkainen notifications@github.com
wrote:

Actually, I think I can hear continuous faint static.


Reply to this email directly or view it on GitHub
#1511 (comment).

@ronchaine
Copy link
Contributor

Nope, I ran it through an equalizer and it didn't show any signal either. I can try to debug this myself, no guarantees I find anything though, I usually try to avoid ALSA API like a plague.

edit: I actually managed to narrow this down quite a bit in 10 minutes, might be able to provide a fix. I got the audio working on my computer already by commenting out "os_x11.cpp:1877: AudioDriverManagerSW::add_driver(&driver_pulseaudio);", or changing order so ALSA loads before pulseaudio failing to do so. I just need to find how these drivers work now... :D

@ronchaine
Copy link
Contributor

Ok, this works both ways. Loading pulse after forcing alsa to fail also leads to pulse loading but outputting no audio. I have no idea where to continue looking.

edit: nevermind, I got it to work.

@OvermindDL1
Copy link

Have you checked the sampling is right from alsa to the hardware, sometimes it has been a bit off for me causing issues. I went pulseaudio a year back with no issues since so I cannot test easily at the moment to see if I could replicate it again.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants