soundrenderer.java

来自「JAVA3D矩陈的相关类」· Java 代码 · 共 76 行

JAVA
76
字号
/* * $RCSfile: SoundRenderer.java,v $ * * Copyright (c) 2007 Sun Microsystems, Inc. All rights reserved. * * Use is subject to license terms. * * $Revision: 1.5 $ * $Date: 2007/04/12 17:34:06 $ * $State: Exp $ */package javax.media.j3d;import javax.vecmath.*;import java.util.Vector;class SoundRenderer extends Object {    SoundRenderer() {    }    void activate(SoundRetained sound, SoundscapeRetained ss) {        AuralAttributesRetained aa = ss.attributes.mirrorAa;	if (sound instanceof BackgroundSoundRetained) {	        System.err.println("Activating BackgroundSoundRetained");	} else if (sound instanceof ConeSoundRetained) {	        System.err.println("Activating ConeSoundRetained");	} else if (sound instanceof PointSoundRetained) {	        System.err.println("Activating PointSoundRetained");	}        if (ss != null)	    System.err.println("Soundscape is " + ss);        else	    System.err.println("Soundscape is null");        if (aa != null)	    System.err.println("AuralAttributes is " + aa);        else	    System.err.println("AuralAttributes is null");    }     void update(SoundRetained sound, SoundscapeRetained ss) {        AuralAttributesRetained aa = ss.attributes.mirrorAa;	if (false) {	    if (sound instanceof BackgroundSoundRetained) {	        System.err.println("Updating BackgroundSoundRetained");	    } else if (sound instanceof ConeSoundRetained) {	        System.err.println("Updating ConeSoundRetained");	    } else if (sound instanceof PointSoundRetained) {	        System.err.println("Updating PointSoundRetained");	    }	    System.err.println("Soundscape is " + ss);	}    }     void deactivate(SoundRetained sound) {	if (false) {	    if (sound instanceof BackgroundSoundRetained) {	        System.err.println("Deactivating BackgroundSoundRetained");	    } else if (sound instanceof ConeSoundRetained) {	        System.err.println("Deactivating ConeSoundRetained");	    } else if (sound instanceof PointSoundRetained) {	        System.err.println("Deactivating PointSoundRetained");	    }	}    }     public String toString() {           return "";    } }

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?