I tried to create a ConeSound but it doesn't works for me (J3D 1.2.1_03 / Linux). When I use the following code but a PointSound instead, everything works fine:
MediaContainer MC; Point2f[] DistGain=new Point2f[3]; Point3f[] AngGain=new Point3f[3];
DistGain[0]=new Point2f(0.0f,1.0f); DistGain[1]=new Point2f(5f,1.0f); DistGain[2]=new Point2f(20f,0.0f);
AngGain[0]=new Point3f(0.0f,1.0f,ConeSound.NO_FILTER); AngGain[1]=new Point3f((float)Math.toRadians(90),1.0f,ConeSound.NO_FILTER); AngGain[2]=new Point3f((float)Math.toRadians(120),0.0f,ConeSound.NO_FILTER);
MC=new MediaContainer("file:./beep.au"); CSnd=new ConeSound(MC,1.0f,-1,false,true,true,BigBounds,0,new Point3f(0.0f,0.0f,0.0f),DistGain,DistGain,new Vector3f(0.0f,0.0f,-1.0f),AngGain); TG.addChild(CSnd);
TG is a TransformGroup which is attached to the universe (and which works fine with a PointSound). Does anybody know where the problem could be?
Michael
=========================================================================== 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".