debian/0000755000000000000000000000000011630772221007167 5ustar debian/copyright0000644000000000000000000000303711342224326011123 0ustar Format-Specification: http://svn.debian.org/wsvn/dep/web/deps/dep5.mdwn?op=file&rev=135 Maintainer: Joseph Hines , Dong Yang , Scott Pennell , Dmitry Vaguine Source: http://www.javazoom.net/jlgui/api.html Name: BasicPlayer Files: * Copyright: 2007, Joseph Hines 2007, Dong Yang 2007, Scott Pennell 2007, Dmitry Vaguine License: LGPL-2+ Files: debian/* Copyright: 2007, Torsten Werner 2010, أحمد المحمودي (Ahmed El-Mahmoudy) License: GPL-2+ License: LGPL-2+ This package is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. . On Debian systems, the complete text of the GNU Lesser General Public License version 2 can be found in `/usr/share/common-licenses/LGPL-2'. License: GPL-2+ 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 2, or (at your option) any later version. . On Debian GNU/Linux systems, the complete text of the GNU General Public License version can be found in `/usr/share/common-licenses/GPL-2'. debian/patches/0000755000000000000000000000000011630772221010616 5ustar debian/patches/pulseaudio.diff0000644000000000000000000000670711342222170013625 0ustar Description: Workaround OpenJDK's Pulse Audio implementation The pulse audio implementation in OpenJDK claims to support gain when you call isControlSupported, but then throws an exception anyway. So put a try catch around isControlSupported calls to avoid problems, please refer to: http://stackoverflow.com/questions/1914216/master-gain-not-supported-in-openjdk --- a/src/javazoom/jlgui/basicplayer/BasicPlayer.java +++ b/src/javazoom/jlgui/basicplayer/BasicPlayer.java @@ -454,17 +454,23 @@ log.debug("Controls : " + c[p].toString()); } /*-- Is Gain Control supported ? --*/ - if (m_line.isControlSupported(FloatControl.Type.MASTER_GAIN)) - { - m_gainControl = (FloatControl) m_line.getControl(FloatControl.Type.MASTER_GAIN); - log.info("Master Gain Control : [" + m_gainControl.getMinimum() + "," + m_gainControl.getMaximum() + "] " + m_gainControl.getPrecision()); + try { + if (m_line.isControlSupported(FloatControl.Type.MASTER_GAIN)) + { + m_gainControl = (FloatControl) m_line.getControl(FloatControl.Type.MASTER_GAIN); + log.info("Master Gain Control : [" + m_gainControl.getMinimum() + "," + m_gainControl.getMaximum() + "] " + m_gainControl.getPrecision()); + } } + catch (IllegalArgumentException e) { } /*-- Is Pan control supported ? --*/ - if (m_line.isControlSupported(FloatControl.Type.PAN)) - { - m_panControl = (FloatControl) m_line.getControl(FloatControl.Type.PAN); - log.info("Pan Control : [" + m_panControl.getMinimum() + "," + m_panControl.getMaximum() + "] " + m_panControl.getPrecision()); + try { + if (m_line.isControlSupported(FloatControl.Type.PAN)) + { + m_panControl = (FloatControl) m_line.getControl(FloatControl.Type.PAN); + log.info("Pan Control : [" + m_panControl.getMinimum() + "," + m_panControl.getMaximum() + "] " + m_panControl.getPrecision()); + } } + catch (IllegalArgumentException e) { } } } @@ -795,7 +801,10 @@ if (m_gainControl == null) { // Try to get Gain control again (to support J2SE 1.5) - if ( (m_line != null) && (m_line.isControlSupported(FloatControl.Type.MASTER_GAIN))) m_gainControl = (FloatControl) m_line.getControl(FloatControl.Type.MASTER_GAIN); + try { + if ( (m_line != null) && (m_line.isControlSupported(FloatControl.Type.MASTER_GAIN))) m_gainControl = (FloatControl) m_line.getControl(FloatControl.Type.MASTER_GAIN); + } + catch (IllegalArgumentException e) { } } return m_gainControl != null; } @@ -853,7 +862,10 @@ if (m_panControl == null) { // Try to get Pan control again (to support J2SE 1.5) - if ((m_line != null)&& (m_line.isControlSupported(FloatControl.Type.PAN))) m_panControl = (FloatControl) m_line.getControl(FloatControl.Type.PAN); + try { + if ((m_line != null)&& (m_line.isControlSupported(FloatControl.Type.PAN))) m_panControl = (FloatControl) m_line.getControl(FloatControl.Type.PAN); + } + catch (IllegalArgumentException e) { } } return m_panControl != null; } debian/patches/series0000644000000000000000000000002011342222170012014 0ustar pulseaudio.diff debian/rules0000755000000000000000000000102111342526717010250 0ustar #!/usr/bin/make -f include /usr/share/cdbs/1/rules/debhelper.mk include /usr/share/cdbs/1/class/ant.mk JAVA_HOME := /usr/lib/jvm/default-java DEB_ANT_BUILD_TARGET := all DEB_JARS := commons-logging tritonus_share vorbisspi install/libbasicplayer-java:: install -m 644 -D basicplayer*.jar $(DEB_DESTDIR)/usr/share/java/basicplayer-$(DEB_UPSTREAM_VERSION).jar dh_link /usr/share/java/basicplayer-$(DEB_UPSTREAM_VERSION).jar /usr/share/java/basicplayer.jar get-orig-source: -uscan --upstream-version 0 debian/orig-tar.sh0000755000000000000000000000066510704617305011263 0ustar #!/bin/sh -e # called by uscan with '--upstream-version' TAR=../libbasicplayer-java_$2.orig.tar.gz DIR=libbasicplayer-java-$2.orig # clean up the upstream tarball unzip $3 mv BasicPlayer$2 $DIR tar -c -z -f $TAR --exclude '*.jar' --exclude '*/docs/*' $DIR rm -rf $3 $DIR # move to directory 'tarballs' if [ -r .svn/deb-layout ]; then . .svn/deb-layout mv $TAR $origDir echo "moved $TAR to $origDir" fi exit 0 debian/changelog0000644000000000000000000000362211630744655011056 0ustar libbasicplayer-java (3.0-6) unstable; urgency=low * Remove suggests: java-virtual-machine. * Update Standards-Version: 3.9.2. -- Torsten Werner Sun, 04 Sep 2011 20:52:32 +0200 libbasicplayer-java (3.0-5) unstable; urgency=low * Remove default-jre | java5-runtime from Depends since this is a java library. -- أحمد المحمودي (Ahmed El-Mahmoudy) Mon, 01 Mar 2010 05:56:29 +0200 libbasicplayer-java (3.0-4) unstable; urgency=low [ أحمد المحمودي (Ahmed El-Mahmoudy) ] * Add pulseaudio.diff patch to workaround OpenJDK's Pulse Audio implementation (Closes: #567856). * debian/control: + Bump Standards-Version to 3.8.4 + Changed section to java. + Added myself to uploaders. + Enhanced extended description. * debian/copyright: converted to machine-readable format. [ Varun Hiremath ] * Fix Vcs-{Svn,Browser} headers * Switch to deafult-jdk * Bump dh compat to 7 -- Varun Hiremath Sun, 28 Feb 2010 12:46:45 -0500 libbasicplayer-java (3.0-3) unstable; urgency=low * Move the package to pkg-java svn. * Set Maintainer to Debian Java Maintainers and add myself to Uploaders. * Remove debian/install and install jar from debian/rules and create symbolic link. * Bump up Standards-Version to 3.7.3 -- Varun Hiremath Fri, 18 Jan 2008 12:16:29 +0530 libbasicplayer-java (3.0-2) unstable; urgency=low [ Varun Hiremath ] * debian/control: Add XS-Vcs-{Svn,Browser} headers. * Add debian/README.Debian-source file. [ Torsten Werner ] * Switch to java-gcj-compat from kaffe. * Repair XS-Vcs-* header. -- Varun Hiremath Mon, 15 Oct 2007 13:33:14 +0530 libbasicplayer-java (3.0-1) unstable; urgency=low * Initial release (Closes: #420505) -- Torsten Werner Sun, 22 Apr 2007 21:43:32 +0200 debian/doc-base0000644000000000000000000000051210704617305010567 0ustar Document: libbasicplayer-java Title: Programmer API for BasicPlayer Author: Joseph Hines, Dong Yang, Scott Pennell, Dmitry Vaguine Abstract: BasicPlayer layer is the simple player API of jlGui Section: Programming Format: HTML Index: /usr/share/doc/libbasicplayer-java/index.html Files: /usr/share/doc/libbasicplayer-java/*.html debian/README.Debian-source0000644000000000000000000000100210704617305012521 0ustar libbasicplayer-java =================== The upstream supplied source package contains binary jar files and pre-built documentation. Currently no clean source distribution exists. Therefore, the upstream sources were modified to comply with the Debian Free Software Guidelines. Use the rules/get-orig-source target to create the orig.tar.gz. For more details on repackaging of upstream sources please see the debian/orig-tar.sh file. -- Varun Hiremath Mon, 27 Aug 2007 19:02:53 +0530 debian/watch0000644000000000000000000000014610704617305010223 0ustar version=3 http://www.javazoom.net/jlgui/api.html .*/basicplayer(.*).zip \ debian debian/orig-tar.sh debian/control0000644000000000000000000000221411630744655010603 0ustar Source: libbasicplayer-java Section: java Priority: optional Maintainer: Debian Java Maintainers Uploaders: Varun Hiremath , Torsten Werner , أحمد المحمودي (Ahmed El-Mahmoudy) Build-Depends: cdbs, debhelper (>= 7) Build-Depends-Indep: ant, default-jdk, libcommons-logging-java, libtritonus-java, libvorbisspi-java Standards-Version: 3.9.2 Homepage: http://www.javazoom.net/jlgui/api.html Vcs-Svn: svn://svn.debian.org/svn/pkg-java/trunk/libbasicplayer-java/ Vcs-Browser: http://svn.debian.org/wsvn/pkg-java/trunk/libbasicplayer-java/ Package: libbasicplayer-java Architecture: all Depends: ${shlibs:Depends}, ${misc:Depends} Description: threaded simple player class based on JavaSound API BasicPlayer layer is the simple player API of jlGui. These classes are designed to be used in any application that needs simple features (play, stop, pause, resume, seek) to play audio file or stream. It's a high-level API over JavaSound API. . This java library is part of the jlgui player project but can be used independently. debian/source/0000755000000000000000000000000011630772221010467 5ustar debian/source/format0000644000000000000000000000001411342222170011666 0ustar 3.0 (quilt) debian/compat0000644000000000000000000000000211342526717010374 0ustar 7 debian/docs0000644000000000000000000000002210704617305010036 0ustar docs/* README.txt