From one at inprinciple.org Sat Sep 1 00:47:18 2007 From: one at inprinciple.org (one) Date: Sat, 01 Sep 2007 00:47:18 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio Message-ID: Good Day, I was able to implement a basic Java Sound Mixer Service Provider with PortAudio. TargetDataLine and SourceDataLine are working. I read the posting that the OpenJDK implementation is going to be released soon. But I guess it is not to mean for Mac OS X. So I thought it may be of interest to OpenJDK community. I was able to record and playback at sampling rates from 2 kHz to 96 kHz on MacBook. I call my implementation YavaSound to make it sound close to Java Sound and also to distinguish it from Java Sound. If this name is not allowed for legal issues (trade name,.. etc), please let me know, I can change it to something else. The source code is under same license as PortAudio (www.portaudio.com). YavaSound source can be downloaded from : http://YavaSound.inPrinciple.org/YavaSoundSource.zip The PortAudio library used is for Mac OS X. But as PortAudio is cross platform. Making YavaSound cross platform is easy as linking to corresponding PortAudio library. Best Regards, Yong From javasound-dev at bome.com Sat Sep 1 14:11:36 2007 From: javasound-dev at bome.com (Florian Bomers) Date: Sat, 01 Sep 2007 23:11:36 +0200 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: References: Message-ID: <46D9D588.9040107@bome.com> Hi Yong, that's a nice thing to have! YavaSound is very similar to the original name, in some languages it will even sound the same as JavaSound (e.g. in German), so in order to be on safe side, legally, I'd recommend to name it differently though. Also, your name is not very descriptive. Maybe a name that includes or references somehow "PortAudio" will tell people already from the name what it will do. Or a fantasy name... Regards, Florian On 9/1/2007 9:47 AM, one wrote: > Good Day, > > I was able to implement a basic Java Sound Mixer Service Provider with > PortAudio. > TargetDataLine and SourceDataLine are working. > > I read the posting that the OpenJDK implementation is going to be > released soon. > But I guess it is not to mean for Mac OS X. > So I thought it may be of interest to OpenJDK community. > > I was able to record and playback at sampling rates from 2 kHz to 96 kHz > on MacBook. > > I call my implementation YavaSound to make it sound close to Java Sound > and also to distinguish it from Java Sound. If this name is not allowed > for legal issues (trade name,.. etc), please let me know, I can change > it to something else. > > The source code is under same license as PortAudio (www.portaudio.com). > YavaSound source can be downloaded from : > http://YavaSound.inPrinciple.org/YavaSoundSource.zip > > The PortAudio library used is for Mac OS X. > But as PortAudio is cross platform. > Making YavaSound cross platform is easy as linking to corresponding > PortAudio library. > > Best Regards, > Yong > > > > -- Florian Bomers Bome Software ------------------------------------------------------- Music Software, Development Tools: http://www.bome.com Java Sound extensions, plugins: http://www.tritonus.org The Java Sound Resources: http://www.jsresources.org ------------------------------------------------------- Please quote this email in your reply. Thanks! From one at InPrinciple.org Sat Sep 1 22:11:51 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sat, 01 Sep 2007 22:11:51 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <46D9D588.9040107@bome.com> References: <46D9D588.9040107@bome.com> Message-ID: <64374F675C484EF687965A0F9ED1716C@MacBook> Hi Florian, Thanks for the advice. Maybe I should look for a new name, but I do not know what to call it otherwise yet. I will just wait and see how it goes until either I get a better name for it or Sun says something. Is this a bad attitude? Regards, Yong ----- Original Message ----- From: "Florian Bomers" > YavaSound is very similar to the original name, in some languages > it will even sound the same as JavaSound (e.g. in German), so in > order to be on safe side, legally, I'd recommend to name it > differently though. > > Also, your name is not very descriptive. Maybe a name that > includes or references somehow "PortAudio" will tell people > already from the name what it will do. Or a fantasy name... From one at InPrinciple.org Sat Sep 1 22:46:24 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sat, 01 Sep 2007 22:46:24 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <46D9D588.9040107@bome.com> References: <46D9D588.9040107@bome.com> Message-ID: <51017AFBDBD44DB1832DFD18B24877ED@MacBook> Hi, I am just wondering if I should go and implement Clip interface as well. But if Sun is going to release the implementation source code soon and if it is written in pure Java without JNI, there is no point for me to implement it myself. Any thoughts? Regards, Yong From javasound-dev at bome.com Sat Sep 1 23:00:07 2007 From: javasound-dev at bome.com (Florian Bomers) Date: Sun, 02 Sep 2007 08:00:07 +0200 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <51017AFBDBD44DB1832DFD18B24877ED@MacBook> References: <46D9D588.9040107@bome.com> <51017AFBDBD44DB1832DFD18B24877ED@MacBook> Message-ID: <46DA5167.9030204@bome.com> Sun's Java Sound uses JNI internally. If you want to provide Clips from your plugin, you'll need to implement it yourself. Regards, Florian On 9/2/2007 7:46 AM, Yong Hyeon Yoon wrote: > Hi, > > I am just wondering if I should go and implement Clip interface as well. > But if Sun is going to release the implementation source code soon and > if it is written in pure Java without JNI, there is no point for me to > implement it myself. > Any thoughts? > > Regards, > Yong > > > -- Florian Bomers Bome Software ------------------------------------------------------- Music Software, Development Tools: http://www.bome.com Java Sound extensions, plugins: http://www.tritonus.org The Java Sound Resources: http://www.jsresources.org ------------------------------------------------------- Please quote this email in your reply. Thanks! From one at InPrinciple.org Sat Sep 1 23:10:30 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sat, 01 Sep 2007 23:10:30 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <46DA5167.9030204@bome.com> References: <46D9D588.9040107@bome.com> <51017AFBDBD44DB1832DFD18B24877ED@MacBook> <46DA5167.9030204@bome.com> Message-ID: Thanks. Then I am going to try to implement Clip interface. Regards, Yong ----- Original Message ----- From: "Florian Bomers" To: "Yong Hyeon Yoon" Cc: Sent: Saturday, September 01, 2007 11:00 PM Subject: Re: A Java Sound Mixer Service Provider Implementation with PortAudio > Sun's Java Sound uses JNI internally. If you want to provide > Clips from your plugin, you'll need to implement it yourself. > > Regards, > Florian > > > On 9/2/2007 7:46 AM, Yong Hyeon Yoon wrote: >> Hi, >> >> I am just wondering if I should go and implement Clip interface as well. >> But if Sun is going to release the implementation source code soon and >> if it is written in pure Java without JNI, there is no point for me to >> implement it myself. >> Any thoughts? >> >> Regards, >> Yong >> >> >> > > -- > Florian Bomers > Bome Software > > ------------------------------------------------------- > Music Software, Development Tools: http://www.bome.com > Java Sound extensions, plugins: http://www.tritonus.org > The Java Sound Resources: http://www.jsresources.org > ------------------------------------------------------- > Please quote this email in your reply. Thanks! From javasound-dev at bome.com Sat Sep 1 23:12:49 2007 From: javasound-dev at bome.com (Florian Bomers) Date: Sun, 02 Sep 2007 08:12:49 +0200 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <64374F675C484EF687965A0F9ED1716C@MacBook> References: <46D9D588.9040107@bome.com> <64374F675C484EF687965A0F9ED1716C@MacBook> Message-ID: <46DA5461.6060002@bome.com> > I will just wait and see how it goes until either I get a better name > for it or Sun says something. > Is this a bad attitude? not necessarily. But as far as I know the lawyers, they would argue that *I* said something... In any case, Sun doesn't have a history of suing. And don't get me wrong, I like your name. But as far as I can tell, you are "violating" their trademark. Maybe just make it "YongSound" or "YoonSound"? Regards, Florian PS: btw, for me the best place to discuss Java Sound is the javasound-interest mailing list: http://java.sun.com/products/java-media/sound/list.html PPS: IANAL (I am not a lawyer) > > Regards, > Yong > > ----- Original Message ----- From: "Florian Bomers" > >> YavaSound is very similar to the original name, in some languages >> it will even sound the same as JavaSound (e.g. in German), so in >> order to be on safe side, legally, I'd recommend to name it >> differently though. >> >> Also, your name is not very descriptive. Maybe a name that >> includes or references somehow "PortAudio" will tell people >> already from the name what it will do. Or a fantasy name... > > > -- Florian Bomers Bome Software ------------------------------------------------------- Music Software, Development Tools: http://www.bome.com Java Sound extensions, plugins: http://www.tritonus.org The Java Sound Resources: http://www.jsresources.org ------------------------------------------------------- Please quote this email in your reply. Thanks! From one at InPrinciple.org Sat Sep 1 23:32:29 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sat, 01 Sep 2007 23:32:29 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <46DA5461.6060002@bome.com> References: <46D9D588.9040107@bome.com> <64374F675C484EF687965A0F9ED1716C@MacBook> <46DA5461.6060002@bome.com> Message-ID: ----- Original Message ----- From: "Florian Bomers" > not necessarily. But as far as I know the lawyers, they would > argue that *I* said something... > > In any case, Sun doesn't have a history of suing. > > And don't get me wrong, I like your name. But as far as I can > tell, you are "violating" their trademark. Maybe just make it > "YongSound" or "YoonSound"? I will use "KuroSound". How do you think? > PS: btw, for me the best place to discuss Java Sound is the > javasound-interest mailing list: > http://java.sun.com/products/java-media/sound/list.html Thanks. I will check it out. > PPS: IANAL (I am not a lawyer) Me neither. Regards, Yong From javasound-dev at bome.com Sat Sep 1 23:46:22 2007 From: javasound-dev at bome.com (Florian Bomers) Date: Sun, 02 Sep 2007 08:46:22 +0200 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: References: <46D9D588.9040107@bome.com> <64374F675C484EF687965A0F9ED1716C@MacBook> <46DA5461.6060002@bome.com> Message-ID: <46DA5C3E.2010204@bome.com> > I will use "KuroSound". How do you think? sure, sounds interesting >> PPS: IANAL (I am not a lawyer) > > Me neither. :) Florian > > > Regards, > Yong > > -- Florian Bomers Bome Software ------------------------------------------------------- Music Software, Development Tools: http://www.bome.com Java Sound extensions, plugins: http://www.tritonus.org The Java Sound Resources: http://www.jsresources.org ------------------------------------------------------- Please quote this email in your reply. Thanks! From one at InPrinciple.org Sun Sep 2 01:27:47 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sun, 02 Sep 2007 01:27:47 -0700 Subject: A Java Sound Mixer Service Provider Implementation withPortAudio In-Reply-To: References: Message-ID: <788DC6CAFC804B6DB7B8CAEB3C29C680@MacBook> ----- Original Message ----- > YavaSound source can be downloaded from : > http://YavaSound.inPrinciple.org/YavaSoundSource.zip The project name has changed to KuroSound. And the download link has changed to: http://KuroSound.inPrinciple.org/KuroSound.zip Regards, Yong From one at InPrinciple.org Sun Sep 2 06:24:56 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sun, 02 Sep 2007 06:24:56 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: References: <46D9D588.9040107@bome.com> <51017AFBDBD44DB1832DFD18B24877ED@MacBook> <46DA5167.9030204@bome.com> Message-ID: <4080AA5F09C74AB7B2699F573562C5A4@MacBook> Hi, I've implemented basic Clip interface. The sample application shows how to use it. Regards, Yong From one at InPrinciple.org Sun Sep 2 20:22:01 2007 From: one at InPrinciple.org (Yong Hyeon Yoon) Date: Sun, 02 Sep 2007 20:22:01 -0700 Subject: A Java Sound Mixer Service Provider Implementation with PortAudio In-Reply-To: <46D9D588.9040107@bome.com> References: <46D9D588.9040107@bome.com> Message-ID: <85F6A064154A43898C502153F432EE6F@MacBook> I've added LineListener implementation in Line and DataLine. I guess most of interfaces except Port in sampled.* are taken care of now. I think Port implementation will involve some more PortAudio. I will see how it turns out. :) regards, yong From Alexey.Menkov at Sun.COM Fri Sep 14 04:31:26 2007 From: Alexey.Menkov at Sun.COM (Alex Menkov) Date: Fri, 14 Sep 2007 15:31:26 +0400 Subject: Unencumbered part of JavaSound implementation has been opened Message-ID: <46EA710E.9000308@sun.com> Hi all, Sorry for several weeks delay with the event, but... I'm glad to inform you that big part of JavaSound implementation source has been opened and is available at the openjdk website (http://download.java.net/openjdk/jdk7) and at the subversion repository (http://openjdk.dev.java.net/source/browse/openjdk). Open part includes the following: - "direct audio" mixer implementation (DirectSound/ALSA/Solaris Audio Mixer); - Ports mixer implementation (WinMM/ALSA/Solaris Audio Mixer); - Midi i/o devices implementation (WinMM/ALSA); - various file readers/writes, format converters. Closed code has been moved into separate library (jsoundhs). Base classes and interfaces for both open and closed implementation classes (AbstractLine, AbstractMixer, AbstractMidiDevice, AutoClosingClip, etc.) are open. There are still a few dependencies from "closed" classes in open code, all such dependencies will be removed when we'll have replacement for closed part and start replacement process. To make JavaSound completely open (and drop closed part) we need alternative implementations for: 1) Software synthesizer. There is separate openjdk project for the task - audio-engine-dev; 2) OSS mixer (for linux/solaris, both sampled and midi). Regards Alex From neugens at limasoftware.net Fri Sep 14 04:39:17 2007 From: neugens at limasoftware.net (Mario Torre) Date: Fri, 14 Sep 2007 13:39:17 +0200 Subject: Unencumbered part of JavaSound implementation has been opened In-Reply-To: <46EA710E.9000308@sun.com> References: <46EA710E.9000308@sun.com> Message-ID: <1189769957.3232.14.camel@nirvana.limasoftware.net> Il giorno ven, 14/09/2007 alle 15.31 +0400, Alex Menkov ha scritto: > Hi all, > Open part includes the following: > - "direct audio" mixer implementation (DirectSound/ALSA/Solaris Audio Mixer); > - Ports mixer implementation (WinMM/ALSA/Solaris Audio Mixer); > - Midi i/o devices implementation (WinMM/ALSA); > - various file readers/writes, format converters. Great work! Mario -- Lima Software - http://www.limasoftware.net/ GNU Classpath Developer - http://www.classpath.org/ Fedora Ambassador - http://fedoraproject.org/wiki/MarioTorre Jabber: neugens at jabber.org pgp key: http://subkeys.pgp.net/ PGP Key ID: 80F240CF Fingerprint: BA39 9666 94EC 8B73 27FA FC7C 4086 63E3 80F2 40CF Please, support open standards: http://opendocumentfellowship.org/petition/ http://www.nosoftwarepatents.com/ -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 189 bytes Desc: Questa =?ISO-8859-1?Q?=E8?= una parte del messaggio firmata digitalmente Url : http://mail.openjdk.java.net/pipermail/sound-dev/attachments/20070914/8e9c0a4c/attachment.bin From klausj at phonetik.uni-muenchen.de Mon Sep 24 02:22:44 2007 From: klausj at phonetik.uni-muenchen.de (Klaus Jaensch) Date: Mon, 24 Sep 2007 11:22:44 +0200 (CEST) Subject: DirectSound multi-channel recording Message-ID: Hello, I would like to record multi-channel 24-bit audio with the DirectSound JavaSound implementation under Windows. But the audio formats defined in j2se/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp are limited to 8/16bit and 1 or 2 channels. I would like to discuss how this limitation could be removed. For testing multichannel capabilities of JavaSound I extended channelsArray up to 8 channels and bitsArray for 24/32 bit recordings, then compiled dsound.dll and tested recording. It worked fine, so it's a pity that the recording formats are restricted to basic formats. The question is how to make multi-channel possible without changing the supported defaults formats, which can be queried by isFormatSupported(AudioFormat). Regards, Klaus ------------------------------------------ Klaus Jaensch Muenchen Germany Institut fuer Phonetik und Sprachverarbeitung Schellingstr.3/II 80799 M?nchen EMail: klausj at phonetik.uni-muenchen.de From Alexey.Menkov at Sun.COM Mon Sep 24 03:35:33 2007 From: Alexey.Menkov at Sun.COM (Alex Menkov) Date: Mon, 24 Sep 2007 14:35:33 +0400 Subject: DirectSound multi-channel recording In-Reply-To: References: Message-ID: <46F792F5.5090008@sun.com> Hi Klaus, It's CR 6477263: JavaSound doesn't support multi-channels on Windows (http://bugs.sun.com/view_bug.do?bug_id=6477263) Feel free to develop a fix for the CR :) Why do you want to keep supported format unchanged? Right way is to change the supported formats (line/mixer should report formats it really supports). Regards Alex Klaus Jaensch wrote: > Hello, > > I would like to record multi-channel 24-bit audio with the > DirectSound JavaSound implementation under Windows. > > But the audio formats defined in > > j2se/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp > > are limited to 8/16bit and 1 or 2 channels. > > I would like to discuss how this limitation could be removed. > > For testing multichannel capabilities of JavaSound I extended > channelsArray up to 8 channels and bitsArray for > 24/32 bit recordings, then compiled dsound.dll and tested recording. > It worked fine, so it's a pity that the recording formats are restricted > to basic formats. > > The question is how to make multi-channel possible without changing > the supported defaults formats, which can be queried by > isFormatSupported(AudioFormat). > > Regards, > > Klaus > > ------------------------------------------ > Klaus Jaensch > Muenchen > Germany > > Institut fuer Phonetik und Sprachverarbeitung > Schellingstr.3/II > 80799 M?nchen > > EMail: klausj at phonetik.uni-muenchen.de From klausj at phonetik.uni-muenchen.de Mon Sep 24 04:15:41 2007 From: klausj at phonetik.uni-muenchen.de (Klaus Jaensch) Date: Mon, 24 Sep 2007 13:15:41 +0200 (CEST) Subject: DirectSound multi-channel recording In-Reply-To: <46F792F5.5090008@sun.com> References: <46F792F5.5090008@sun.com> Message-ID: Hi Alex, > Hi Klaus, > > It's CR 6477263: JavaSound doesn't support multi-channels on Windows > (http://bugs.sun.com/view_bug.do?bug_id=6477263) > Feel free to develop a fix for the CR :) > Yes good idea, but I fear building the JDK under Windows, because Sun uses old versions of SDK's and Compiler (I do not have VS.NET 2003 and I don't want to buy it at eBay). I have already build an older JDK version and it was horrible. (Tweaking make files and so on ...) Is it possible to compile dsound.dll seperatly with VS 2005 Express ? > Why do you want to keep supported format unchanged? > Right way is to change the supported formats (line/mixer should report formats > it really supports). > Yes, you are right. But I do not know if it is possible to get the supported formats from DirectSound. I think the number of capture channels is available, but only when the line is open. Regards, Klaus > Regards > Alex > > Klaus Jaensch wrote: > > Hello, > > > > I would like to record multi-channel 24-bit audio with the DirectSound > > JavaSound implementation under Windows. > > But the audio formats defined in > > > > j2se/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp > > > > are limited to 8/16bit and 1 or 2 channels. > > I would like to discuss how this limitation could be removed. > > > > For testing multichannel capabilities of JavaSound I extended channelsArray > > up to 8 channels and bitsArray for 24/32 bit recordings, then compiled > > dsound.dll and tested recording. > > It worked fine, so it's a pity that the recording formats are restricted to > > basic formats. > > > > The question is how to make multi-channel possible without changing the > > supported defaults formats, which can be queried by > > isFormatSupported(AudioFormat). > > > > Regards, > > > > Klaus > > > > ------------------------------------------ > > Klaus Jaensch > > Muenchen > > Germany > > > > Institut fuer Phonetik und Sprachverarbeitung > > Schellingstr.3/II > > 80799 M?nchen > > > > EMail: klausj at phonetik.uni-muenchen.de > ------------------------------------------ Klaus Jaensch Muenchen Germany Institut fuer Phonetik und Sprachverarbeitung Schellingstr.3/II 80799 M?nchen Phone (Work): +49-(0)89-2180-2806 Fax: +49-(0)89-2180-5790 EMail: klausj at phonetik.uni-muenchen.de From Alexey.Menkov at Sun.COM Mon Sep 24 05:16:28 2007 From: Alexey.Menkov at Sun.COM (Alex Menkov) Date: Mon, 24 Sep 2007 16:16:28 +0400 Subject: DirectSound multi-channel recording In-Reply-To: References: <46F792F5.5090008@sun.com> Message-ID: <46F7AA9C.40604@sun.com> Klaus, Regards Alex Klaus Jaensch wrote: >> It's CR 6477263: JavaSound doesn't support multi-channels on Windows >> (http://bugs.sun.com/view_bug.do?bug_id=6477263) >> Feel free to develop a fix for the CR :) >> > > Yes good idea, but I fear building the JDK under Windows, because Sun uses > old versions of SDK's and Compiler (I do not have VS.NET 2003 and I don't > want to buy it at eBay). I have already build an older JDK version and it > was horrible. (Tweaking make files and so on ...) > Is it possible to compile dsound.dll seperatly with VS 2005 Express ? Due the build doc (make/README-builds.html) "VS2005 compiler will not work at this time due to the new runtime dll and the manifest requirements". :( I never used VS2005 so I don't know what it requires. AFAIR there was some free toolkit with VS2003 c++ compiler. Most likely it should work. (BTW you need to build jsoundds.dll - see make/javax/sound/jsoundds) >> Why do you want to keep supported format unchanged? >> Right way is to change the supported formats (line/mixer should report formats >> it really supports). >> > > Yes, you are right. But I do not know if it is possible to get the > supported formats from DirectSound. > I think the number of capture channels is available, but only when the > line is open. Yes, DirectSound does not provide information about HW capabilities (the detection was possible in WinMM, but I don't remember is it possible to determine relations between WinMM & DS devices and I'm not sure WinMM functions supports >2 channels). Anyway I think due DirectSound can handle multi-channel audio, JavaSound should report it as supported formats (at least for playback, capturing requires additional research). > > Regards, > Klaus > >> Regards >> Alex >> >> Klaus Jaensch wrote: >>> Hello, >>> >>> I would like to record multi-channel 24-bit audio with the DirectSound >>> JavaSound implementation under Windows. >>> But the audio formats defined in >>> >>> j2se/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp >>> >>> are limited to 8/16bit and 1 or 2 channels. >>> I would like to discuss how this limitation could be removed. >>> >>> For testing multichannel capabilities of JavaSound I extended channelsArray >>> up to 8 channels and bitsArray for 24/32 bit recordings, then compiled >>> dsound.dll and tested recording. >>> It worked fine, so it's a pity that the recording formats are restricted to >>> basic formats. >>> >>> The question is how to make multi-channel possible without changing the >>> supported defaults formats, which can be queried by >>> isFormatSupported(AudioFormat). >>> >>> Regards, >>> >>> Klaus >>> >>> ------------------------------------------ >>> Klaus Jaensch >>> Muenchen >>> Germany >>> >>> Institut fuer Phonetik und Sprachverarbeitung >>> Schellingstr.3/II >>> 80799 M?nchen >>> >>> EMail: klausj at phonetik.uni-muenchen.de > > ------------------------------------------ > Klaus Jaensch > Muenchen > Germany > > Institut fuer Phonetik und Sprachverarbeitung > Schellingstr.3/II > 80799 M?nchen > > Phone (Work): +49-(0)89-2180-2806 > Fax: +49-(0)89-2180-5790 > EMail: klausj at phonetik.uni-muenchen.de From klausj at phonetik.uni-muenchen.de Mon Sep 24 07:22:10 2007 From: klausj at phonetik.uni-muenchen.de (Klaus Jaensch) Date: Mon, 24 Sep 2007 16:22:10 +0200 (CEST) Subject: DirectSound multi-channel recording In-Reply-To: <46F7AA9C.40604@sun.com> References: <46F792F5.5090008@sun.com> <46F7AA9C.40604@sun.com> Message-ID: Hi Alex, On Mon, 24 Sep 2007, Alex Menkov wrote: > > Klaus Jaensch wrote: > > > It's CR 6477263: JavaSound doesn't support multi-channels on Windows > > > (http://bugs.sun.com/view_bug.do?bug_id=6477263) > > > Feel free to develop a fix for the CR :) > > > > > > > Yes good idea, but I fear building the JDK under Windows, because Sun uses > > old versions of SDK's and Compiler (I do not have VS.NET 2003 and I don't > > want to buy it at eBay). I have already build an older JDK version and it > > was horrible. (Tweaking make files and so on ...) > > Is it possible to compile dsound.dll seperatly with VS 2005 Express ? > > Due the build doc (make/README-builds.html) "VS2005 compiler will not work at > this time due to the new runtime dll and the manifest requirements". :( > I never used VS2005 so I don't know what it requires. > AFAIR there was some free toolkit with VS2003 c++ compiler. Most likely it > should work. > (BTW you need to build jsoundds.dll - see make/javax/sound/jsoundds) > thanks for the hint, but I'm too late for download: "The Visual C++ Toolkit 2003 has been replaced by Visual C++ 2005 Express Edition." Regards, Klaus > > > > Why do you want to keep supported format unchanged? > > > Right way is to change the supported formats (line/mixer should report > > > formats > > > it really supports). > > > > > > > Yes, you are right. But I do not know if it is possible to get the supported > > formats from DirectSound. > > I think the number of capture channels is available, but only when the line > > is open. > > Yes, DirectSound does not provide information about HW capabilities (the > detection was possible in WinMM, but I don't remember is it possible to > determine relations between WinMM & DS devices and I'm not sure WinMM > functions > supports >2 channels). > Anyway I think due DirectSound can handle multi-channel audio, JavaSound > should report it as supported formats (at least for playback, capturing > requires additional research). > > > > > Regards, > > Klaus > > > > > Regards > > > Alex > > > > > > Klaus Jaensch wrote: > > > > Hello, > > > > > > > > I would like to record multi-channel 24-bit audio with the DirectSound > > > > JavaSound implementation under Windows. But the audio formats defined in > > > > > > > > j2se/src/windows/native/com/sun/media/sound/PLATFORM_API_WinOS_DirectSound.cpp > > > > > > > > are limited to 8/16bit and 1 or 2 channels. I would like to discuss how > > > > this limitation could be removed. > > > > > > > > For testing multichannel capabilities of JavaSound I extended > > > > channelsArray > > > > up to 8 channels and bitsArray for 24/32 bit recordings, then compiled > > > > dsound.dll and tested recording. > > > > It worked fine, so it's a pity that the recording formats are restricted > > > > to > > > > basic formats. > > > > > > > > The question is how to make multi-channel possible without changing the > > > > supported defaults formats, which can be queried by > > > > isFormatSupported(AudioFormat). > > > > > > > > Regards, > > > > > > > > Klaus > > > > > > > > ------------------------------------------ > > > > Klaus Jaensch > > > > Muenchen > > > > Germany > > > > > > > > Institut fuer Phonetik und Sprachverarbeitung > > > > Schellingstr.3/II > > > > 80799 M?nchen > > > > > > > > EMail: klausj at phonetik.uni-muenchen.de > > > > ------------------------------------------ > > Klaus Jaensch > > Muenchen > > Germany > > > > Institut fuer Phonetik und Sprachverarbeitung > > Schellingstr.3/II > > 80799 M?nchen > > > > Phone (Work): +49-(0)89-2180-2806 > > Fax: +49-(0)89-2180-5790 > > EMail: klausj at phonetik.uni-muenchen.de > ------------------------------------------ Klaus Jaensch Muenchen Germany Institut fuer Phonetik und Sprachverarbeitung Schellingstr.3/II 80799 M?nchen Phone (Work): +49-(0)89-2180-2806 Fax: +49-(0)89-2180-5790 EMail: klausj at phonetik.uni-muenchen.de