From owner-freebsd-java Fri Jan 4 7:56:25 2002 Delivered-To: freebsd-java@freebsd.org Received: from firewall.ox.com (firewall.ox.com [129.77.1.1]) by hub.freebsd.org (Postfix) with ESMTP id B53C137B41F for ; Fri, 4 Jan 2002 07:56:19 -0800 (PST) Received: from firewall.ox.com (root@localhost) by firewall.ox.com with ESMTP id g04FuIn19429 for ; Fri, 4 Jan 2002 10:56:18 -0500 (EST) Received: from pur-sv-tumbmms1.ddns.ox.com (pur-sv-tumbmms1.ddns.ox.com [129.77.103.5]) by firewall.ox.com with SMTP id g04FuIW19425 for ; Fri, 4 Jan 2002 10:56:18 -0500 (EST) Received: from 129.77.2.97 by pur-sv-tumbmms1.ddns.ox.com with ESMTP ( Tumbleweed MMS SMTP Relay (MMS v4.7)); Fri, 04 Jan 2002 10:57:04 -0500 X-Server-Uuid: 7c16403c-60dc-47d4-9228-e9695ec29764 Message-ID: <3C35D0A2.50106@ox.com> Date: Fri, 04 Jan 2002 10:56:18 -0500 From: "Robert Furphy" User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:0.9.7+) Gecko/20020103 X-Accept-Language: en-us MIME-Version: 1.0 To: freebsd-java@FreeBSD.ORG Subject: Re: Playing audio with Java (JDK 1.3.1)??? References: X-WSS-ID: 102B0F5A33570-01-01 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: owner-freebsd-java@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org Greg is correct. The last time I munged with the sound code was back in 1.2.2 days (a year or more ago I think). I remember that .au and .mid files worked, and maybe .rmf. I think I remember .wav and .aiff files not working. There is a demo in the 1.2.2 jdk tree which allowed me to test all the various formats easily but it has since changed in 1.3.1 and 1.4.0 to not have the tab page for playing the sound files. The demo I'm talking about is in /demo/jfc/Java2D. (Check the "Mix" tab page) There are some low level calls being made by the JVM to the sound hardware which don't properly initialize the sound card for the file formats which don't work. Long ago I left some initial debugging messages in the source to try to discover what was wrong but I don't know if they're stiil there or if I was even on the right track to fixing the JVM. I think sound support is being moved more to the JMF api. Perhaps there is where you'll find good example programs for how playing sound is supposed to be done going forward (jdk1.3.1, jdk1.4.0 and beyond) like jmstudio. Rob Furphy Mikhail Kruk wrote: >I have appletviewer from 1.3.1 playing au files more or less fine. >I suspect that you are just asking to much of it. Last time I checked >appletviewer was playing only .au files (sun's audio format). I might be >wrong here though... I think that last time was around jdk 1.1 :) >In other words try your applet on win32 or Linux, maybe it it's not >supposed to work. > >>On Thu, Jan 03, 2002 at 04:20:29PM -0500, Brian Skrab wrote: >> >>> I'm attempting to play a small WAV file on my FreeBSD box, running >>> 4.4-STABLE and jdk1.3.1. Using the method described in almost every >>> Java sound tutorial I've found results in the application simply >>> waiting forever. Here is the source code that I'm using: >>> >>I've no idea who has tested playing sound other than you, but as the >>person who munged in the sound code from 1.2.2, I can tell you that this >>is the first time I've heard from someone who has tested the code under >>1.3.1. I can also tell you that I have no sound card, nor any familiarity >>with how sound playing works. >> >>However, I'm told that the sound support did partially work in 1.2.2 >>(Rob Furphy got it to that stage). I believe that it did play some >>formats but not others. So, I'd try another format :). >> >>I would guess that your chances of JavaSound stuff working well is >>pretty limited unless someone (with a sound card preferably :) steps >>up in terms of debugging it. >> >>Probably not what you wanted to hear, but may be helpful :). >> >>-- >>Greg Lewis Email : glewis@eyesbeyond.com >>Eyes Beyond Phone : (801) 796 6999 >>Information Technology Web : http://www.eyesbeyond.com >> >> >>To Unsubscribe: send mail to majordomo@FreeBSD.org >>with "unsubscribe freebsd-java" in the body of the message >> > > >To Unsubscribe: send mail to majordomo@FreeBSD.org >with "unsubscribe freebsd-java" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-java" in the body of the message