Merge pull request #150864 from krav/krav/vlc-headphones

vlc: fix headphones mode; libspatialaudio: init at 0.3.0
This commit is contained in:
Thiago Kenji Okada 2021-12-20 10:51:18 -03:00 committed by GitHub
commit beef0af495
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 36 additions and 3 deletions

View File

@ -7,8 +7,8 @@
, mpeg2dec, systemd, gnutls, avahi, libcddb, libjack2, SDL, SDL_image
, libmtp, unzip, taglib, libkate, libtiger, libv4l, samba, libssh2, liboggz
, libass, libva, libdvbpsi, libdc1394, libraw1394, libopus
, libvdpau, libsamplerate, live555, fluidsynth, wayland, wayland-protocols
, ncurses, srt
, libvdpau, libsamplerate, libspatialaudio, live555, fluidsynth
, wayland, wayland-protocols, ncurses, srt
, onlyLibVLC ? false
, withQt5 ? true, qtbase, qtsvg, qtx11extras, wrapQtAppsHook
, jackSupport ? false
@ -43,7 +43,7 @@ stdenv.mkDerivation rec {
libkate libtiger libv4l samba libssh2 liboggz libass libdvbpsi libva
xorg.xlibsWrapper xorg.libXv xorg.libXvMC xorg.libXpm xorg.xcbutilkeysyms
libdc1394 libraw1394 libopus libebml libmatroska libvdpau libsamplerate
fluidsynth wayland wayland-protocols ncurses srt
libspatialaudio fluidsynth wayland wayland-protocols ncurses srt
] ++ optional (!stdenv.hostPlatform.isAarch64 && !stdenv.hostPlatform.isAarch32) live555
++ optionals withQt5 [ qtbase qtsvg qtx11extras ]
++ optionals skins2Support (with xorg; [ libXpm freetype libXext libXinerama ])
@ -101,6 +101,12 @@ stdenv.mkDerivation rec {
sed -i 's|^#define CONFIGURE_LINE.*$|#define CONFIGURE_LINE "<removed>"|g' config.h
'';
# Add missing SOFA files
# Given in EXTRA_DIST, but not in install-data target
postInstall = ''
cp -R share/hrtfs $out/share/vlc
'';
meta = with lib; {
description = "Cross-platform media player and streaming server";
homepage = "http://www.videolan.org/vlc/";

View File

@ -0,0 +1,25 @@
{ lib, stdenv, cmake, fetchFromGitHub, libmysofa, zlib }:
stdenv.mkDerivation rec {
pname = "libspatialaudio";
version = "0.3.0";
src = fetchFromGitHub {
owner = "videolabs";
repo = "libspatialaudio";
rev = version;
hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI=";
};
nativeBuildInputs = [ cmake ];
buildInputs = [ libmysofa zlib ];
meta = with lib; {
description =
"Ambisonic encoding / decoding and binauralization library in C++";
homepage = "https://github.com/videolabs/libspatialaudio";
license = licenses.lgpl21Plus;
platforms = platforms.linux;
maintainers = with maintainers; [ krav ];
};
}

View File

@ -18345,6 +18345,8 @@ with pkgs;
libstrophe = callPackage ../development/libraries/libstrophe { };
libspatialaudio = callPackage ../development/libraries/libspatialaudio { };
libspatialindex = callPackage ../development/libraries/libspatialindex { };
libspatialite = callPackage ../development/libraries/libspatialite { };