Logo
Explore Help
Sign In
public/nixpkgs
1
0
Fork 0
You've already forked nixpkgs
Code Issues Pull Requests Packages Projects Releases Wiki Activity
nixpkgs/pkgs/development/libraries/openal-soft/search-out.patch

13 lines
299 B
Diff
Raw Normal View History

openalSolf: make it search its own $out for data files Without those data files HRTF will silently fail to initialize. It searches /usr and /usr/local by default but we don't have those paths. It also searches XDG_DATA_DIRS but using that requires configuration by the user. This patch makes makes it just work. How to play with it: - Build `mpv` with `openalSoft` support. - cat << EOF > ~/.alsoftrc [general] hrtf = true EOF - Wear stereo headphones. - Play a file with 6 or more channels with `mpv -ao openal $file`, e.g. https://archive.org/download/5.1SurroundSoundTestFilesVariousFormatsAACAC3MP4DTSWAV/5.1%20Surround%20Sound%20AAC%20Test.mp4 - Try `hrtf = false` to hear the difference.
2019-06-21 18:14:06 +00:00
diff -Nuar a/Alc/helpers.c b/Alc/helpers.c
--- a/Alc/helpers.c 1970-01-01 00:00:01.000000000 +0000
+++ b/Alc/helpers.c 1970-01-01 00:00:02.000000000 +0000
@@ -951,6 +951,8 @@
}
}
+ DirectorySearch("@OUT@/share", ext, &results);
+
alstr_reset(&path);
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.23.8 Page: 2714ms Template: 6ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API