HydrogenAudio

Hydrogenaudio Forum => General Audio => Topic started by: BECHA on 2013-07-16 00:55:06

Title: Anyone from Oracle could you give me a favor?
Post by: BECHA on 2013-07-16 00:55:06
It seems Windows Java runtime limits bits depth to 16 when actual underline sound system can support 24 or even 32.

Linux JDK doesn't have the problem although limits can be extended there too.

So if you have access to codebase and generally have authority to create a ticket and change the code, please do it as below:

File PLATFORM_API_WinOS_DirectSound.cpp

Line as
static INT32 bitsArray[] = { 8, 16};

Change to:
static INT32 bitsArray[] = { 8, 16, 20, 24, 32};

I assume you can apply changes only toward version 8, since 7 is currently on code freeze and only security patches can be applied.

Regarding Linux. Here is another file: PLATFORM_API_LinuxOS_ALSA_PCM.c
It restricts bits depth to 24. Yes, Linux version is more advance. However making it 32 could be nice too. I am not sure about change here. Certainly
#define MAX_BIT_INDEX 6
should be increased to 8, but it looks like some more changes need to be applied. Keep the change as lower priority. And you can go back to me if you need more details.
Title: Anyone from Oracle could you give me a favor?
Post by: db1989 on 2013-07-16 01:26:47
Is there some good reason that you cannot post this to an actually relevant location, for instance http://bugreport.sun.com/bugreport/ (http://bugreport.sun.com/bugreport/)?