pulseaudio: use integer resampling on FPU-less devices
authorKoen Kooi <koen@openembedded.org>
Thu, 22 Feb 2007 18:38:40 +0000 (18:38 +0000)
committerKoen Kooi <koen@openembedded.org>
Thu, 22 Feb 2007 18:38:40 +0000 (18:38 +0000)
packages/pulseaudio/pulseaudio_0.9.5.bb

index 9fdd3aa..3e18374 100644 (file)
@@ -10,7 +10,7 @@ DEPENDS += "alsa-lib"
 
 RPROVIDES = "esound esd"
 
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://0pointer.de/lennart/projects/pulseaudio/pulseaudio-${PV}.tar.gz"
 
@@ -30,10 +30,15 @@ EXTRA_OECONF = "\
 
 PARALLEL_MAKE = ""
 
+export TARGET_FPU="${TARGET_FPU}"
 
 do_install_append() {
        install -d ${D}${sysconfdir}/default/volatiles
        install -m 0644 ${WORKDIR}/volatiles.04_pulse  ${D}${sysconfdir}/default/volatiles/volatiles.04_pulse
+       
+       if [ "x${TARGET_FPU}" == "xsoft" ] ; then 
+            sed -i -e s:\;\ resample-method\ =\ sinc-fastest:resample-method\ =\ trivial: ${D}${sysconfdir}/pulse/daemon.conf
+       fi
 }