libspatialaudio: init at 0.3.0;vlc: fix headphones mode

This commit is contained in:
Kris La 2021-12-15 22:50:28 +07:00
parent 37aeed381f
commit 23c0ff1384
3 changed files with 32 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,21 @@
{ lib, stdenv, fetchFromGitHub, cmake, libmysofa, zlib }:
stdenv.mkDerivation {
name = "libspatialaudio";
src = fetchFromGitHub {
owner = "videolabs";
repo = "libspatialaudio";
rev = "0.3.0";
hash = "sha256-sPnQPD41AceXM4uGqWXMYhuQv0TUkA6TZP8ChxUFIoI=";
};
buildInputs = [ cmake libmysofa zlib ];
configurePhase = "cmake -DCMAKE_INSTALL_PREFIX=$out .";
meta = {
description =
"Ambisonic encoding / decoding and binauralization library in C++";
homepage = "https://github.com/videolabs/libspatialaudio";
license = lib.licenses.lgpl21Plus;
platforms = lib.platforms.linux;
};
}

View File

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