mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-02-18 01:54:34 +00:00
SDL: better pulseaudioSupport logic
This commit is contained in:
parent
a99a634acf
commit
05f6e0fdaa
@ -8215,7 +8215,9 @@ let
|
||||
openglSupport = mesaSupported;
|
||||
alsaSupport = stdenv.isLinux;
|
||||
x11Support = !stdenv.isCygwin;
|
||||
pulseaudioSupport = stdenv.isLinux;
|
||||
pulseaudioSupport = if (config ? pulseaudio)
|
||||
then config.pulseaudio
|
||||
else stdenv.isLinux;
|
||||
inherit (darwin.apple_sdk.frameworks) OpenGL CoreAudio CoreServices AudioUnit Kernel Cocoa;
|
||||
};
|
||||
|
||||
@ -8237,7 +8239,7 @@ let
|
||||
openglSupport = mesaSupported;
|
||||
alsaSupport = stdenv.isLinux;
|
||||
x11Support = !stdenv.isCygwin;
|
||||
pulseaudioSupport = false; # better go through ALSA
|
||||
pulseaudioSupport = config.pulseaudio or false; # better go through ALSA
|
||||
inherit (darwin.apple_sdk.frameworks) AudioUnit Cocoa CoreAudio CoreServices ForceFeedback OpenGL;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user