LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Games (https://www.linuxquestions.org/questions/linux-games-33/)
-   -   apulse error with Scorched Earth 3D (https://www.linuxquestions.org/questions/linux-games-33/apulse-error-with-scorched-earth-3d-4175635287/)

SUSESailor 07-30-2018 01:58 PM

apulse error with Scorched Earth 3D
 
Hello, all.

I finally got tired of PulseAudio's male-cow-traces, so I removed it completely from my system and replaced it with apulse. Firefox is now playing sound again, but I'm having trouble with Scorched Earth 3D. When I launch APULSE_PLAYBACK_DEVICE=plugequal apulse /usr/local/bin/scorched3dc, I get the following error message:

Code:

[apulse] [error] do_connect_pcm: can't set sample format 2 ("S16_LE") for playback device "plugequal". Error code -22 (Invalid argument)
[apulse] [error] do_connect_pcm: failed to open ALSA device. Apulse does no resampling or format conversion, leaving that task to ALSA plugins. Ensure that selected device is capable of playing a particular sample format at a particular rate. They have to be supported by either hardware directly, or by "plug" and "dmix" ALSA plugins which will perform required conversions on CPU.
AL lib: (EE) connect_playback_stream: Stream did not connect: Oops.
Scorched3D : Failed to open sound device
Scorched3D Sound : Failed to aquire sound.
Is anything else currently using the sound card?

Now, it used to work fine when I had the real PulseAudio installed, so I'm sure my sound device can play whatever Scorch wants it to. Besides, I've never heard of a sound device that wouldn't play 16-bit little-endian.

Any ideas on how to fix this?

Thanks in advance!

bodqhrohro 08-12-2018 12:47 PM

Quote:

Originally Posted by SUSESailor (Post 5885711)
Besides, I've never heard of a sound device that wouldn't play 16-bit little-endian.

Hardware devices — maybe, but the plugin may not. As I see, plugequal is a simple wrapper for a LADSPA plugin, so it unlikely supports a lot of sample formats. Did you try to chain the audio through dmix as the error message suggests?

SUSESailor 08-19-2018 05:51 PM

Well, without doing anything differently, the problem seems to have gone away. Scorch now works fine, with no error messages and with full sound.

So, I guess I'll mark the thread solved.

Thank you!


All times are GMT -5. The time now is 09:40 AM.