Hi,

I'm not sure what you mean with "spatial" - a real 3D-sound which not only
comes from left and right but also from front and back or a "simple"
stereosound. The second one can be realized easy. When you attach
Sound-Nodes to other objects or to several positions within your scene and
move and rotate between them, Java 3D does everything for you. You only
have to initialize the AudioDevice e.g. with

AudioDevice auDev=simpleUniverse.createAudioDevice();
auDev.setAudioPlaybackType(AudioDevice.HEADPHONES);

and then add Pointsound- and Conesound-objects in the same way as you'd do
it with other Nodes.

For real spatial sound effects with headphones I afraid you have to go
deeper inside and write your own audio device which calculates some kind
of virtual surround out of the three-dimensional positions of the sound
sources. But that would be an really advanced algorithm.

Michael

On Mon, 5 Jan 2004 11:14:06 -0000, Mustapha Mahiaoui
<[EMAIL PROTECTED]> wrote:

Hi everybody,

I wish you first a very happy new year. :)

I am very keen to provide spatial audio with the headphones of my
computer.

Does anyone know how to control the left and right audio channels of the
headphones with the help of the Java 3D API?  Examples?

Cheers. :)

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the
body
of the message "signoff JAVA3D-INTEREST".  For general help, send email
to
[EMAIL PROTECTED] and include in the body of the message "help".



-- http://java3d.virtualworlds.de http://www.3dchat.org - Welcome to the unreal world!

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to