debian/0000755000000000000000000000000012202227022007155 5ustar debian/source/0000755000000000000000000000000012202226247010465 5ustar debian/source/format0000644000000000000000000000001412202226247011673 0ustar 3.0 (quilt) debian/patches/0000755000000000000000000000000012202226247010614 5ustar debian/patches/02-missing_include.patch0000644000000000000000000000234512202226247015234 0ustar Description: Make apps build with the libraries built by the same package. Author: Alessio Treglia Forwarded: no --- Forwarded: no --- apps/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- zita-alsa-pcmi.orig/apps/Makefile +++ zita-alsa-pcmi/apps/Makefile @@ -24,7 +24,7 @@ SUFFIX := $(shell uname -m | sed -e 's/^ LIBDIR ?= lib$(SUFFIX) VERSION = "0.1.0" LDFLAGS += -L$(PREFIX)/$(LIBDIR) -CPPFLAGS += -DVERSION=\"$(VERSION)\" +CPPFLAGS += -DVERSION=\"$(VERSION)\" -I../libs CXXFLAGS += -O2 -Wall -MMD -MP @@ -32,7 +32,7 @@ all: alsa_loopback alsa_delay ALSA_LOOPBACK_O = alsa_loopback.o pxthread.o -alsa_loopback: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt +alsa_loopback: LDLIBS += ../libs/libzita-alsa-pcmi.so.0.2.0 -lasound -lpthread -lrt alsa_loopback: $(ALSA_LOOPBACK_O) g++ $(LDFLAGS) -o $@ $(ALSA_LOOPBACK_O) $(LDLIBS) $(ALSA_LOOPBACK_O): @@ -40,7 +40,7 @@ $(ALSA_LOOPBACK_O): ALSA_DELAY_O = alsa_delay.o mtdm.o pxthread.o -alsa_delay: LDLIBS += -lzita-alsa-pcmi -lasound -lpthread -lrt +alsa_delay: LDLIBS += ../libs/libzita-alsa-pcmi.so.0.2.0 -lasound -lpthread -lrt alsa_delay: $(ALSA_DELAY_O) g++ $(LDFLAGS) -o $@ $(ALSA_DELAY_O) $(LDLIBS) $(ALSA_DELAY_O): debian/patches/01-makefile.patch0000644000000000000000000000271012202226247013630 0ustar Description: Patch is applied to set PREFIX, LIBDIR and DESTDIR by rules file. Also fixing ldconfig Author: Jaromír Mikeš Forwarded: no --- apps/Makefile | 4 ++-- libs/Makefile | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) --- zita-alsa-pcmi.orig/libs/Makefile +++ zita-alsa-pcmi/libs/Makefile @@ -20,9 +20,9 @@ # Modify as required. # -PREFIX = /usr/local +PREFIX ?= /usr/local SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') -LIBDIR = lib$(SUFFIX) +LIBDIR ?= lib$(SUFFIX) MAJVERS = 0 @@ -52,7 +52,7 @@ install: $(ZITA-ALSA-PCMI_MIN) install -Dm 644 $(ZITA-ALSA-PCMI_H) $(DESTDIR)$(PREFIX)/include/$(ZITA-ALSA-PCMI_H) install -Dm 644 $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_MIN) ln -sf $(ZITA-ALSA-PCMI_MIN) $(DESTDIR)$(PREFIX)/$(LIBDIR)/$(ZITA-ALSA-PCMI_SO) - ldconfig + /sbin/ldconfig -n $(DESTDIR)$(PREFIX)/$(LIBDIR) uninstall: rm -rf $(DESTDIR)$(PREFIX)/include/zita-alsa-pcmi.h --- zita-alsa-pcmi.orig/apps/Makefile +++ zita-alsa-pcmi/apps/Makefile @@ -19,9 +19,9 @@ # ---------------------------------------------------------------------------- -PREFIX = /usr/local +PREFIX ?= /usr/local SUFFIX := $(shell uname -m | sed -e 's/^unknown/$//' -e 's/^i.86/$//' -e 's/^x86_64/$/64/') -LIBDIR = lib$(SUFFIX) +LIBDIR ?= lib$(SUFFIX) VERSION = "0.1.0" LDFLAGS += -L$(PREFIX)/$(LIBDIR) CPPFLAGS += -DVERSION=\"$(VERSION)\" debian/patches/series0000644000000000000000000000007612202226247012034 0ustar 01-makefile.patch 02-missing_include.patch 03-fix_usage.patch debian/patches/03-fix_usage.patch0000644000000000000000000000161112202226247014026 0ustar Author: IOhannes m zmölnig Description: fixing the 'usage' printout by using the actual programname (rather than hardcoding a wrong one) and adding spaces between the required arguments (so it's clear they are multiple strings, and not just a single big string) --- zita-alsa-pcmi.orig/apps/alsa_delay.cc +++ zita-alsa-pcmi/apps/alsa_delay.cc @@ -146,7 +146,7 @@ if (ac < 6) { - fprintf (stderr, "alsa-latency \n"); + fprintf (stderr, "%s \n", av[0]); return 1; } --- zita-alsa-pcmi.orig/apps/alsa_loopback.cc +++ zita-alsa-pcmi/apps/alsa_loopback.cc @@ -103,7 +103,7 @@ if (ac < 6) { - fprintf (stderr, "alsa-loopback \n"); + fprintf (stderr, "%s \n", av[0]); return 1; } debian/libzita-alsa-pcmi0.symbols0000644000000000000000000000506412202226247014166 0ustar libzita-alsa-pcmi.so.0 libzita-alsa-pcmi0 #MINVER# (c++)"zita_alsa_pcmi_major_version()@Base" 0.2.0 (c++)"zita_alsa_pcmi_minor_version()@Base" 0.2.0 (c++)"Alsa_pcmi::capt_float(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::clear_chan(int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::initialise(char const*, char const*, char const*)@Base" 0.2.0 (c++)"Alsa_pcmi::play_float(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_16swap(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_24swap(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_32swap(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_16swap(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_24swap(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_32swap(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_16(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_24(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_32(char const*, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_16(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_24(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_32(float const*, char*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::recover()@Base" 0.2.0 (c++)"Alsa_pcmi::clear_16(char*, int)@Base" 0.2.0 (c++)"Alsa_pcmi::clear_24(char*, int)@Base" 0.2.0 (c++)"Alsa_pcmi::clear_32(char*, int)@Base" 0.2.0 (c++)"Alsa_pcmi::pcm_idle(int)@Base" 0.2.0 (c++)"Alsa_pcmi::pcm_stop()@Base" 0.2.0 (c++)"Alsa_pcmi::pcm_wait()@Base" 0.2.0 (c++)"Alsa_pcmi::capt_chan(int, float*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_done(int)@Base" 0.2.0 (c++)"Alsa_pcmi::capt_init(unsigned long)@Base" 0.2.0 (c++)"Alsa_pcmi::pcm_start()@Base" 0.2.0 (c++)"Alsa_pcmi::play_chan(int, float const*, int, int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_done(int)@Base" 0.2.0 (c++)"Alsa_pcmi::play_init(unsigned long)@Base" 0.2.0 (c++)"Alsa_pcmi::printinfo()@Base" 0.2.0 (c++)"Alsa_pcmi::set_hwpar(_snd_pcm*, _snd_pcm_hw_params*, char const*, unsigned int*)@Base" 0.2.0 (c++)"Alsa_pcmi::set_swpar(_snd_pcm*, _snd_pcm_sw_params*, char const*)@Base" 0.2.0 (c++)"Alsa_pcmi::xruncheck(_snd_pcm_status*)@Base" 0.2.0 (c++)"Alsa_pcmi::Alsa_pcmi(char const*, char const*, char const*, unsigned int, unsigned int, unsigned int, unsigned int)@Base" 0.2.0 (c++)"Alsa_pcmi::Alsa_pcmi(char const*, char const*, char const*, unsigned int, unsigned int, unsigned int, unsigned int)@Base" 0.2.0 (c++)"Alsa_pcmi::~Alsa_pcmi()@Base" 0.2.0 (c++)"Alsa_pcmi::~Alsa_pcmi()@Base" 0.2.0 debian/libzita-alsa-pcmi0.install0000644000000000000000000000002412202226247014133 0ustar usr/lib/*/lib*.so.* debian/changelog0000644000000000000000000000215312202226247011040 0ustar zita-alsa-pcmi (0.2.0-2) unstable; urgency=low [ Alessio Treglia ] * Add symbols file, don't use static shlibs anymore. [ IOhannes m zmoelnig ] * Adding manpages (Closes: #716677) * Fix usage-message of sample-applications. * Use canonical Vcs-* stanzas. [ Jaromír Mikeš ] * Removed DMUA. * Bump Standards. * Added local-options file. -- Jaromír Mikeš Tue, 06 Aug 2013 10:56:12 +0200 zita-alsa-pcmi (0.2.0-1) unstable; urgency=low * New upstream release. * Refresh patches. * Update debian/copyright. * Bump debhelper to 9. * Bump Standards. -- Alessio Treglia Fri, 23 Mar 2012 12:40:59 +0100 zita-alsa-pcmi (0.1.2-1) unstable; urgency=low [ Jaromír Mikeš ] * New upstream release [ Alessio Treglia ] * Add DM-Upload-Allowed: yes. * This release should fix FTBFS on most architectures. -- Jaromír Mikeš Mon, 06 Feb 2012 14:34:50 +0100 zita-alsa-pcmi (0.1.1-1) unstable; urgency=low * Initial release (Closes: #657861) -- Jaromír Mikeš Sun, 29 Jan 2012 17:29:03 +0100 debian/libzita-alsa-pcmi-dev.docs0000644000000000000000000000000712202226247014112 0ustar README debian/compat0000644000000000000000000000000212202226247010363 0ustar 9 debian/watch0000644000000000000000000000015512202226247010217 0ustar version=3 http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html \ zita-alsa-pcmi-(.*)\.tar\.bz2 debian/zita-alsa-pcmi-utils.manpages0000644000000000000000000000005312202226247014651 0ustar debian/alsa_delay.1 debian/alsa_loopback.1 debian/gbp.conf0000644000000000000000000000006212202226247010602 0ustar [DEFAULT] pristine-tar = True compression = bzip2 debian/control0000644000000000000000000000364712202226247010602 0ustar Source: zita-alsa-pcmi Section: sound Priority: optional Maintainer: Debian Multimedia Maintainers Uploaders: Alessio Treglia , Jaromír Mikeš Build-Depends: debhelper (>= 9), libasound2-dev Standards-Version: 3.9.4 Vcs-Git: git://anonscm.debian.org/pkg-multimedia/zita-alsa-pcmi.git Vcs-Browser: http://anonscm.debian.org/gitweb/?p=pkg-multimedia/zita-alsa-pcmi.git Homepage: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html Package: libzita-alsa-pcmi-dev Section: libdevel Architecture: any Depends: libfftw3-dev (>= 3.1.2-3.1), libzita-alsa-pcmi0 (= ${binary:Version}), ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Description: Development files (headers) for libzita-alsa-pcmi library Zita-alsa-pcmi is a C++ wrapper around the ALSA API a successor of clalsadrv library. It provides easy access to ALSA PCM devices, taking care of the many functions required to open, initialise and use a hw: device in mmap mode, and providing floating point audio data. . This package contains the headers used to build applications that use libzita-alsa-pcmi. Package: libzita-alsa-pcmi0 Section: libs Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Multi-Arch: same Pre-Depends: ${misc:Pre-Depends} Description: C++ wrapper around the ALSA API Zita-alsa-pcmi is the successor of clalsadrv library. It provides easy access to ALSA PCM devices, taking care of the many functions required to open, initialise and use a hw: device in mmap mode, and providing floating point audio data. . This package contains the shared library for libzita-alsa-pcmi. Package: zita-alsa-pcmi-utils Architecture: any Depends: ${misc:Depends}, ${shlibs:Depends} Description: Two simple demo programs zita-alsa-pcmi library Two simple demo programs are provided. alsa_delay a ALSA version of jack_delay. And alsa_loopback debian/zita-alsa-pcmi-utils.install0000644000000000000000000000001012202226247014515 0ustar usr/bin debian/rules0000755000000000000000000000107312202226247010246 0ustar #!/usr/bin/make -f DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) export PREFIX=/usr export LIBDIR=lib/$(DEB_HOST_MULTIARCH) export DESTDIR=$(CURDIR)/debian/tmp %: dh $@ -Smakefile override_dh_auto_build: $(MAKE) -C libs/ $(MAKE) -C apps/ override_dh_auto_clean: dh_auto_clean $(MAKE) -C libs/ clean $(MAKE) -C apps/ clean override_dh_auto_install: dh_auto_install $(MAKE) -C libs/ DESTDIR=$(CURDIR)/debian/tmp install $(MAKE) -C apps/ DESTDIR=$(CURDIR)/debian/tmp install override_dh_installchangelogs: dh_installchangelogs README debian/alsa_loopback.10000644000000000000000000000236712202226247012051 0ustar .TH zita-alsa-pcmi "1" "July 2013" .SH NAME alsa_loopback \- loop back the first two channels of a alsa device to another device .SH SYNOPSIS .B alsa_loopback .RI playdev .RI captdev .RI fsamp .RI frsize .RI nfrags .SH DESCRIPTION This tool is mainly for testing whether a given soundcard works with the .BR zita-alsa-pcmi library. It will send the 1st two channels of the given capture device to the playback device, using the specified settings. .PP Note, that this might give massive (ear and equipment damaging) feedback if your capture device is connected to a microphone near some speakers connected to the playback device. .SH ARGUMENTS .TP \fBplaydev\fR ALSA playback device (e.g.: hw:0) .TP \fBcaptdev\fR ALSA capture device (e.g.: hw:0) .TP \fBfsamp\fR Sample rate (e.g.: 48000) .TP \fBfrsize\fR Period size (e.g.: 256) .TP \fBnfrags\fR Number of fragments (e.g.: 2) .SH EXAMPLES This will loopback the 1st two channels of .BR hw:0 to .BR hw:1 using 48kHz samplerate, and 10 fragments each 2048 samples. .nf alsa_loopback hw:0 hw:1 48000 2048 10 .fi .SH "AUTHOR" zita-alsa-pcmi was written by Fons Adriaensen . .PP This manual page was written by IOhannes m zmoelnig for the Debian project (but may be used by others). debian/libzita-alsa-pcmi-dev.install0000644000000000000000000000004012202226247014625 0ustar usr/include/* usr/lib/*/lib*.so debian/alsa_delay.10000644000000000000000000000262312202226247011350 0ustar .TH zita-alsa-pcmi "1" "July 2013" .SH NAME alsa_delay \- measure round-trip latency of a soundcard .SH SYNOPSIS .B alsa_delay .RI playdev .RI captdev .RI fsamp .RI frsize .RI nfrags .SH DESCRIPTION This tool can be used to measure the round-trip latency of a soundcard. To do this, start the program and connect like this: .nf alsa_delay -> playdev -> cable from soundcard output to input -> captdev -> alsa_delay .fi .PP .BR alsa_delay should be able to measure the round-trip latency with an accuracy of around 1/1000 of a sample. The assumption is, that the latency is more or less independent of frequency, and that the cable between soundcard output and input has virtually zero latency. .SH ARGUMENTS .TP \fBplaydev\fR ALSA playback device (e.g.: hw:0) .TP \fBcaptdev\fR ALSA capture device (e.g.: hw:0) .TP \fBfsamp\fR Sample rate (e.g.: 48000) .TP \fBfrsize\fR Period size (e.g.: 256) .TP \fBnfrags\fR Number of fragments (e.g.: 2) .SH EXAMPLES This will measure and display the round-trip latency of soundcard .BR hw:0 using 48kHz samplerate, and 10 fragments each 2048 samples. .nf alsa_delay hw:0 hw:0 48000 2048 10 .fi .SH NOTES .BR alsa_delay is a port of .BR jack_delay (by the same author) to ALSA. .SH "AUTHOR" zita-alsa-pcmi was written by Fons Adriaensen . .PP This manual page was written by IOhannes m zmoelnig for the Debian project (but may be used by others). debian/copyright0000644000000000000000000000225712202226247011126 0ustar Format: http://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ Upstream-Name: Zita-alsa-pcmi Upstream-Contact: Fons Adriaensen Source: http://kokkinizita.linuxaudio.org/linuxaudio/downloads/index.html Files: * Copyright: 2003-2012 Fons Adriaensen License: GPL-3+ Files: debian/* Copyright: 2012-2013 Jaromír Mikeš License: GPL-3+ License: GPL-3+ This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version. . This package is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. Comment: On Debian systems, the complete text of the GNU General Public License can be found in the file `/usr/share/common-licenses/GPL-3'. . You should have received a copy of the GNU General Public License along with this program. If not, see .