<Sound Dev> DirectSound multi-channel recording

Alex Menkov Alexey.Menkov at Sun.COM
Mon Sep 24 03:35:33 PDT 2007


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



More information about the sound-dev mailing list