UltraStar-Deluxe / USDX

The free and open source karaoke singing game UltraStar Deluxe, inspired by Sony SingStar™
https://usdx.eu
GNU General Public License v2.0
832 stars 160 forks source link

Only 2 channels available on 4 a channel card #594

Closed jose1711 closed 2 years ago

jose1711 commented 2 years ago

Actual behaviour

I only see 2 channels available in Record menu while there are 4 channels input channels provided by the card.

pavucontrol: obrázok

capture controls in alsamixer: obrázok

Expected behaviour

There should be 4 channels in the menu so that 4 players can play - each using a separate channel.

Steps to reproduce

  1. Attach ZEDi10FX interface/mix via USB and turn it on
  2. Compile ultrastardx (latest master) and run it
  3. Navigate to "Options/Record" menu, select "ZEDi10" soundcard
  4. Check number of available channels

Details

Provide some additional information:

s09bQ5 commented 2 years ago

Did you build ultrastardx with PortAudio support? If not, ultrastardx will use SDL and SDL will not allow us to determine the number of channels when used in conjunction with PulseAudio. We tell SDL that we don't care about the number of channels. SDL defaults to 2. PulseAudio complies and mixes all inputs to stereo. You can override SDL's choice with the environment variable SDL_AUDIO_CHANNELS.

jose1711 commented 2 years ago

Thank you, checked and PKGBUILD for Arch indeed contains --without-portaudio. I recompiled w/o this option passed all 4 mics are picked up correctly.