From dev-return-28940-apmail-harmony-dev-archive=harmony.apache.org@harmony.apache.org Tue Aug 28 10:09:31 2007 Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 23094 invoked from network); 28 Aug 2007 10:09:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Aug 2007 10:09:30 -0000 Received: (qmail 48388 invoked by uid 500); 28 Aug 2007 10:09:24 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 48361 invoked by uid 500); 28 Aug 2007 10:09:24 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 48352 invoked by uid 99); 28 Aug 2007 10:09:23 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2007 03:09:23 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of firepure@gmail.com designates 64.233.184.234 as permitted sender) Received: from [64.233.184.234] (HELO wr-out-0506.google.com) (64.233.184.234) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Aug 2007 10:09:17 +0000 Received: by wr-out-0506.google.com with SMTP id c48so1209876wra for ; Tue, 28 Aug 2007 03:08:56 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=aLA0U+96d1aPQdf5d1jinZCD5sR6qfsFnSm7gefDFSCqBUWyDhkbS/W7MPyd5ZcFL6EM6RLrRC4lAtU+LO3xJWSkQ7y/ATaO7ATdN6ESrqiFUcpp1sxv17rOn8i2Az/oW1qiEsdXzKjNrhLCfpncN0KYx0h9faO29uRqNUTjUuM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:mime-version:content-type:content-transfer-encoding:content-disposition; b=gSQpXrf0uZhauI7+BfMlkY9KteKQc5U8eHD0u7PtWK+duR1EAk8UF731ZfOKu7PG9P02iyRop/50Yb9kK+W9ifFNGDhJbvgEfsL7IpXqFb1nux5+lu/HJl5PMgrJUGK4e1Fabr4MGWbseKEceIqxOFH11WnniZjbmbPu8kZCoVU= Received: by 10.114.173.15 with SMTP id v15mr130410wae.1188295735395; Tue, 28 Aug 2007 03:08:55 -0700 (PDT) Received: by 10.114.92.8 with HTTP; Tue, 28 Aug 2007 03:08:55 -0700 (PDT) Message-ID: <5c8e69f0708280308x339c512cx53acc1447477cee3@mail.gmail.com> Date: Tue, 28 Aug 2007 18:08:55 +0800 From: "Jimmy,Jing Lv" To: dev@harmony.apache.org Subject: [classlib][sound]Harmony lacks sound.properties and real providers MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline X-Virus-Checked: Checked by ClamAV on apache.org Hi All, Though sound module has 100% API coverage [1], a simple test on sound module shows that it lacks some real providers[2]. What's more, Harmony need a sound.properties file under jdk/jre/lib according to java doc [3]. It seems Harmony does not have a sound provider yet (please correct me if I miss something). So we have two ways to go: 1. code a provider for Harmony, it may be more than 300K in binary size according to RI's implementation, so a lot of work to do :) 2. find a sound provider from other open source project. I googled open source sound provider, and find some of them. On the top of search result is a project named Tritonus[4], though it does not update since 2003, it is said "Tritonus is an implementation of the Java Sound API" and has a full build for downloading, sounds perfectly meet our requirement (but I did not test it yet), however it is GPL licensed. Some other project, like JLayer/MP3SPI[5] does not support Midi at all which is required, and also LGPL licensed. If we want to use these providers, we can not re-distribute them with Harmony(according to GPL and APL) but ask users to download them theirslves. Any suggestions on this? Or do someone know some APL or APL-compatible open source java sound provider? Thanks! [1] http://www.kaffe.org/~stuart/japi/htmlout/h-jdk15-harmony5.html [2] a small test try to play a midi will cause an Error as follows while RI plays well: java.lang.Error: There is no MidiFileReaderProviders on your system!!! at javax.sound.midi.MidiSystem.getSequence(MidiSystem.java:315) at testdecl.PlayMidi.(PlayMidi.java:39) at testdecl.PlayMidi.main(PlayMidi.java:81) [3] file:///C:/Spec/docs/api/javax/sound/midi/MidiMessage.html [4] http://tritonus.org/ [5] http://www.javazoom.net/projects.html -- Best Regards! Jimmy, Jing Lv China Software Development Lab, IBM