pulseaudio-modules-bt: 1.3 -> 1.4
This commit is contained in:
parent
d2ed1f4fad
commit
7b0c099438
@ -24,18 +24,17 @@ let
|
|||||||
|
|
||||||
in stdenv.mkDerivation rec {
|
in stdenv.mkDerivation rec {
|
||||||
pname = "pulseaudio-modules-bt";
|
pname = "pulseaudio-modules-bt";
|
||||||
version = "1.3";
|
version = "1.4";
|
||||||
|
|
||||||
src = fetchFromGitHub {
|
src = fetchFromGitHub {
|
||||||
owner = "EHfive";
|
owner = "EHfive";
|
||||||
repo = "pulseaudio-modules-bt";
|
repo = "pulseaudio-modules-bt";
|
||||||
rev = "v${version}";
|
rev = "v${version}";
|
||||||
sha256 = "00xmidcw4fvpbmg0nsm2gk5zw26fpyjbc0pjk6mzr570zbnyqqbn";
|
sha256 = "0bzg6x405j39axnkvc6n6vkl1hv1frk94y1i9sl170081bk23asd";
|
||||||
};
|
};
|
||||||
|
|
||||||
patches = [
|
patches = [
|
||||||
./fix-install-path.patch
|
./fix-install-path.patch
|
||||||
./fix-aac-defaults.patch
|
|
||||||
];
|
];
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
@ -63,6 +62,10 @@ in stdenv.mkDerivation rec {
|
|||||||
# Pulseaudio version is detected with a -rebootstrapped suffix which build system assumptions
|
# Pulseaudio version is detected with a -rebootstrapped suffix which build system assumptions
|
||||||
substituteInPlace config.h.in --replace PulseAudio_VERSION ${pulseaudio.version}
|
substituteInPlace config.h.in --replace PulseAudio_VERSION ${pulseaudio.version}
|
||||||
substituteInPlace CMakeLists.txt --replace '${"\${PulseAudio_VERSION}"}' ${pulseaudio.version}
|
substituteInPlace CMakeLists.txt --replace '${"\${PulseAudio_VERSION}"}' ${pulseaudio.version}
|
||||||
|
|
||||||
|
# Fraunhofer recommends to enable afterburner but upstream has it set to false by default
|
||||||
|
substituteInPlace src/modules/bluetooth/a2dp/a2dp_aac.c \
|
||||||
|
--replace "info->aac_afterburner = false;" "info->aac_afterburner = true;"
|
||||||
'';
|
'';
|
||||||
|
|
||||||
postFixup = ''
|
postFixup = ''
|
||||||
|
@ -1,15 +0,0 @@
|
|||||||
diff --git a/src/modules/bluetooth/a2dp/a2dp_aac.c b/src/modules/bluetooth/a2dp/a2dp_aac.c
|
|
||||||
index 394a7a0..cf5abaf 100644
|
|
||||||
--- a/src/modules/bluetooth/a2dp/a2dp_aac.c
|
|
||||||
+++ b/src/modules/bluetooth/a2dp/a2dp_aac.c
|
|
||||||
@@ -90,8 +90,8 @@ pa_aac_encoder_init(pa_a2dp_source_read_cb_t read_cb, pa_a2dp_source_read_buf_fr
|
|
||||||
info->read_pcm = read_cb;
|
|
||||||
info->read_buf_free = free_cb;
|
|
||||||
info->aacenc_handle_opened = false;
|
|
||||||
- info->aac_enc_bitrate_mode = 5;
|
|
||||||
- info->aac_afterburner = false;
|
|
||||||
+ info->aac_enc_bitrate_mode = 0;
|
|
||||||
+ info->aac_afterburner = true;
|
|
||||||
info->force_pa_fmt = PA_SAMPLE_INVALID;
|
|
||||||
return true;
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user