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 ppssppQt for Linux. #5132

Closed
xenowildfire opened this issue Jan 18, 2014 · 16 comments
Closed

No sound in ppssppQt for Linux. #5132

xenowildfire opened this issue Jan 18, 2014 · 16 comments

Comments

@xenowildfire
Copy link

I'm not getting any sound in ppssppQt for Linux, ppssppSDL works fine.

@SergeiAlekseev
Copy link

pulseaudio must be installed i think. ppssppqt doesn't work with pure alsa.

@unknownbrackets
Copy link
Collaborator

This sounds like a config issue as noted, although maybe it can show better log messages (or maybe it already does?)

-[Unknown]

@xenowildfire
Copy link
Author

I think I do have pulseaudio install but i will double check.

I checked and I do have pulseaudio installed

@xenowildfire
Copy link
Author

This is what I get when I compile and run inside Qt.
using null output device, none available

@xenowildfire
Copy link
Author

I installed Ubuntu 12.04.3 and had Qt4 on it, The sound works in ppssppQt. I am not sure how to install Qt5 so I upgraded to 12.10 and then it wanted to upgrade to 13.10 and I installed Qt5 and I get no sound again, so it must be something to do with qtmultimedia5-dev.
I will go back to 12.04 and try and get Qt5 working right on it.
Btw The last Os that I was using about 2 or 3 weeks ago was Zorin 7.1 based on Ubuntu 13.04.
It might not be anything wrong with anything on your end (Bug Wise)
I think it has to do with upgrading anything that's based on Ubuntu 13.10.

@xenowildfire
Copy link
Author

I found this.
http://qt-project.org/forums/viewthread/34867

@unknownbrackets
Copy link
Collaborator

http://qt-project.org/wiki/Qt_Multimedia_Backends

Only PulseAudio, CoreAudio, and QNX backends are actual plugins. The other backends are “#ifdef’ed” in the related classes.

Is there a reason why pulseaudio is undesirable?

-[Unknown]

@xenowildfire
Copy link
Author

Ok i found a fix here.
http://askubuntu.com/questions/279421/how-can-i-install-qt-5-x-on-12-04-lts
Don't know why it wouldn't work before but now it does.

@OmegaPhil
Copy link

I also have this issue - to answer the earlier question, PulseAudio has traditionally been broken bloatware, so best avoided - I have ran on a pure ALSA setup for a year or so now, OSSv4 before that, so an extra framework on top is completely redundant (Debian Testing user here).

I have built ppsspp with Qt4 but now I get 'Unable to create a connection to the pulseaudio context' and no audio... looks like I'll have to look at this later as a project.

@OmegaPhil
Copy link

I have wasted many hours looking into this and have finally found out why - ppsspp seems to do very little with audio, its all on Qt4, and the component used (libqtmultimediakit1) has basically been built with a hard dependency on pulse.

For others that are interested, I have reported this as a Debian bug, including a workaround: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=740451

Finally getting ppssppQt to use ALSA was very disappointing - lots and lots stuttering and crackling when playing a game that was apparently running at a smooth 30fps with automatic frame dropping of 1. I went back to the SDL interface for much better sound, but that has issues with fullscreen breaking the desktop etc.

Should I create a new bug asking for working ALSA sound?

@xenowildfire
Copy link
Author

After all the searching I found a way to get it to work with Qt5.
I finally figured out how to install it but after 13.04 I think it already has Qt5 ready to install and with doing all the searching to get it to work with 13.10.

As far as I can tell I have no problems with sound using Qt4 Or Qt5 but using SDL I found it breaking my desktop when I would go out of full screen.

I think it would help asking for working sound using ALSA that way a lot of people will be able to benefit using ppsspp on Linux that wants to upgrade to 14.04 when it comes out.

I will stick with what I am using for a while, I will build and upload ppsspp SDL & Qt5 for people that have problems trying to compile it on their computers.

Thanks for helping and everything is wrote down on how I compile it on 13.10 or greater if I am ready to upgrade.

@OmegaPhil
Copy link

Just had confirmation from Debian that this bug (hard dependency on Pulse Audio causing an hang in its absence) will not be fixed in Qt4 - sounds like libqtmultimediakit1 you've been building on is junk...

The maintainer recommends to port ppssppQt to Qt5 for the fix...

@unknownbrackets
Copy link
Collaborator

Already works with Qt 5. You'd only have the problem if you tried to build it with Qt 4.

-[Unknown]

@OmegaPhil
Copy link

OK - I'll be waiting for Qt 5.3.2 to appear in Debian Testing then. It doesn't work with Qt5 currently, otherwise there would have been nothing for upstream to fix (talking about a pure ALSA installation here).

@unknownbrackets
Copy link
Collaborator

Well, I meant that PPSSPPQt has already been ported to Qt 5. I don't think we do audio in any non-standard way.

-[Unknown]

@inukaze
Copy link

inukaze commented Dec 17, 2019

Just try to launch forcing ALSA and not PulseAudio, with a command like :
SDL_AUDIODRIVER="alsa" ./PPSSPPSDL

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

5 participants