• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

Java AudioRenderer类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了Java中com.jme3.audio.AudioRenderer的典型用法代码示例。如果您正苦于以下问题:Java AudioRenderer类的具体用法?Java AudioRenderer怎么用?Java AudioRenderer使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



AudioRenderer类属于com.jme3.audio包,在下文中一共展示了AudioRenderer类的19个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。

示例1: NiftyJmeDisplay

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public NiftyJmeDisplay(AssetManager assetManager, 
                       InputManager inputManager,
                       AudioRenderer audioRenderer,
                       ViewPort vp){
    this.assetManager = assetManager;

    w = vp.getCamera().getWidth();
    h = vp.getCamera().getHeight();

    resourceLocation = new ResourceLocationJme();
    ResourceLoader.removeAllResourceLocations();
    ResourceLoader.addResourceLocation(resourceLocation);

    soundDev = new SoundDeviceJme(assetManager, audioRenderer);
    renderDev = new RenderDeviceJme(this);
    inputSys = new InputSystemJme(inputManager);
    if (inputManager != null)
        inputManager.addRawInputListener(inputSys);
    
    nifty = new Nifty(renderDev, soundDev, inputSys, new TimeProvider());
    inputSys.setNifty(nifty);
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:23,代码来源:NiftyJmeDisplay.java


示例2: JME3ContentSystemFactory

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
/**
 * Instantiates a new JM e3 content system factory.
 *
 * @param renderer
 *            the renderer
 * @param audioRenderer
 *            the audio renderer
 * @param assetManager
 *            the asset manager
 * @param updateList
 *            the update list
 * @throws ClassNotFoundException
 *             the class not found exception
 * @throws IOException
 *             Signals that an I/O exception has occurred.
 * @throws ContentTypeAlreadyBoundException
 *             the content type already bound exception
 * @throws ContentTypeInvalidException
 *             the content type invalid exception
 */
public JME3ContentSystemFactory(Renderer renderer, AudioRenderer audioRenderer, AssetManager assetManager, List<IUpdateable> updateList) throws ClassNotFoundException, IOException, ContentTypeAlreadyBoundException, ContentTypeInvalidException
{
	super("multiplicity3.jme3csys.items", new IResourceFinderFilter()
	{
		@Override
		public boolean accept(String dottedResourcePathname)
		{
			String[] components = dottedResourcePathname.split("\\.");
			if (components.length < 2)
			{
				return false;
			}
			String extension = components[components.length - 1];
			String name = components[components.length - 2];
			return extension.equals("class") && name.startsWith("JME") && !name.endsWith("Delegate") && !name.endsWith("$1");
		}
	});
	this.setRenderer(renderer);
	this.setAudioRenderer(audioRenderer);
	this.assetManager = assetManager;
	this.updateList = updateList;
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:43,代码来源:JME3ContentSystemFactory.java


示例3: NiftyJmeDisplay

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public NiftyJmeDisplay(AssetManager assetManager, 
                       InputManager inputManager,
                       AudioRenderer audioRenderer,
                       ViewPort vp){
    this.assetManager = assetManager;

    w = vp.getCamera().getWidth();
    h = vp.getCamera().getHeight();

    soundDev = new SoundDeviceJme(assetManager, audioRenderer);
    renderDev = new RenderDeviceJme(this);
    inputSys = new InputSystemJme(inputManager);
    if (inputManager != null)
        inputManager.addRawInputListener(inputSys);
    
    nifty = new Nifty(renderDev, soundDev, inputSys, new FastTimeProvider());
    inputSys.setNifty(nifty);

    resourceLocation = new ResourceLocationJme();
    nifty.getResourceLoader().removeAllResourceLocations();
    nifty.getResourceLoader().addResourceLocation(resourceLocation);
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:23,代码来源:NiftyJmeDisplay.java


示例4: preparePreview

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
private void preparePreview() {
    SceneApplication.getApplication().enqueue(new Callable<Object>() {

        public Object call() throws Exception {
            ViewPort guiViewPort = offPanel.getViewPort();
            ProjectAssetManager pm = niftyObject.getLookup().lookup(ProjectAssetManager.class);
            if (pm == null) {
                Logger.getLogger(NiftyPreviewPanel.class.getName()).log(Level.WARNING, "No Project AssetManager found!");
                return null;
            }
            AudioRenderer audioRenderer = SceneApplication.getApplication().getAudioRenderer();
            niftyDisplay = new NiftyJmeDisplay(pm,
                    inputHandler,
                    audioRenderer,
                    guiViewPort);
            nifty = niftyDisplay.getNifty();
            de.lessvoid.nifty.tools.resourceloader.ResourceLoader.addResourceLocation(new FileSystemLocation(new File(pm.getAssetFolderName())));

            // attach the nifty display to the gui view port as a processor
            guiViewPort.addProcessor(niftyDisplay);
            return null;
        }
    });
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:25,代码来源:NiftyPreviewPanel.java


示例5: SoundHandleJme

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public SoundHandleJme(AudioRenderer ar, AudioNode node){
    if (ar == null || node == null)
        throw new NullPointerException();

    this.ar = ar;
    this.node = node;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:8,代码来源:SoundHandleJme.java


示例6: gainFocus

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
@Override
public void gainFocus() {
    logger.fine("gainFocus");
    if (view != null) {
        view.onResume();
    }

    if (app != null) {
        //resume the audio
        AudioRenderer audioRenderer = app.getAudioRenderer();
        if (audioRenderer != null) {
            audioRenderer.resumeAll();
        }
        //resume the sensors (aka joysticks)
        if (app.getContext() != null) {
            JoyInput joyInput = app.getContext().getJoyInput();
            if (joyInput != null) {
                if (joyInput instanceof AndroidSensorJoyInput) {
                    AndroidSensorJoyInput androidJoyInput = (AndroidSensorJoyInput) joyInput;
                    androidJoyInput.resumeSensors();
                }
            }
        }
    }

    isGLThreadPaused = false;

    if (app != null) {
        app.gainFocus();
    }
}
 
开发者ID:neph1,项目名称:jme-cardboard,代码行数:32,代码来源:CardboardHarness.java


示例7: loseFocus

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
@Override
public void loseFocus() {
    logger.fine("loseFocus");
    if (app != null) {
        app.loseFocus();
    }

    if (view != null) {
        view.onPause();
    }

    if (app != null) {
        //pause the audio
        AudioRenderer audioRenderer = app.getAudioRenderer();
        if (audioRenderer != null) {
            audioRenderer.pauseAll();
        }
        //pause the sensors (aka joysticks)
        if (app.getContext() != null) {
            JoyInput joyInput = app.getContext().getJoyInput();
            if (joyInput != null) {
                if (joyInput instanceof AndroidSensorJoyInput) {
                    AndroidSensorJoyInput androidJoyInput = (AndroidSensorJoyInput) joyInput;
                    androidJoyInput.pauseSensors();
                }
            }
        }
    }
    isGLThreadPaused = true;
}
 
开发者ID:neph1,项目名称:jme-cardboard,代码行数:31,代码来源:CardboardHarness.java


示例8: SoundHandleJme

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
/**
 * For streaming music only. (May need to loop..)
 * @param ar
 * @param am
 * @param fileName
 */
public SoundHandleJme(AudioRenderer ar, AssetManager am, String fileName){
    if (ar == null || am == null)
        throw new NullPointerException();

    this.am = am;
    if (fileName == null)
        throw new NullPointerException();
    
    this.fileName = fileName;
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:17,代码来源:SoundHandleJme.java


示例9: NiftyJmeDisplay

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public NiftyJmeDisplay(AssetManager assetManager, 
                       InputSystem inputManager,
                       AudioRenderer audioRenderer,
                       ViewPort vp){
    this.assetManager = assetManager;
    //TODO: move
    ((DesktopAssetManager)assetManager).clearCache();
    w = vp.getCamera().getWidth();
    h = vp.getCamera().getHeight();

    soundDev = new SoundDeviceJme(assetManager, audioRenderer);
    renderDev = new RenderDeviceJme(this);
    nifty = new Nifty(renderDev, soundDev, inputManager, new TimeProvider());
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:15,代码来源:NiftyJmeDisplay.java


示例10: getAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
/**
 * @return The {@link AudioRenderer audio renderer} for the application
 */
public AudioRenderer getAudioRenderer() {
    return audioRenderer;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:7,代码来源:Application.java


示例11: SoundDeviceJme

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public SoundDeviceJme(AssetManager assetManager, AudioRenderer ar){
    this.assetManager = assetManager;
    this.ar = ar;
}
 
开发者ID:mleoking,项目名称:PhET,代码行数:5,代码来源:SoundDeviceJme.java


示例12: setAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public void setAudioRenderer(AudioRenderer audioRenderer){
    this.audioRenderer = audioRenderer;
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:4,代码来源:FakeApplication.java


示例13: getAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
@Override
public AudioRenderer getAudioRenderer() {
    defaultFakeError();
    return null;
}
 
开发者ID:jMonkeyEngine,项目名称:sdk,代码行数:6,代码来源:FakeApplication.java


示例14: deleteObject

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
@Override
public void deleteObject(Object rendererObject) {
    ((AudioRenderer)rendererObject).deleteAudioData(this);
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:5,代码来源:GdxAudioData.java


示例15: newAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public static AudioRenderer newAudioRenderer(AppSettings settings) {
    return new AndroidAudioRenderer(activity);
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:4,代码来源:JmeSystem.java


示例16: newAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public static AudioRenderer newAudioRenderer(AppSettings settings) {
    return delegate.newAudioRenderer(settings);
}
 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:4,代码来源:JmeSystem.java


示例17: getAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
/**
 * Gets the audio renderer.
 *
 * @return the audio renderer
 */
public AudioRenderer getAudioRenderer()
{
	return audioRenderer;
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:10,代码来源:JME3ContentSystemFactory.java


示例18: setAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
/**
 * Sets the audio renderer.
 *
 * @param audioRenderer
 *            the new audio renderer
 */
public void setAudioRenderer(AudioRenderer audioRenderer)
{
	this.audioRenderer = audioRenderer;
}
 
开发者ID:synergynet,项目名称:synergynet3.1,代码行数:11,代码来源:JME3ContentSystemFactory.java


示例19: newAudioRenderer

import com.jme3.audio.AudioRenderer; //导入依赖的package包/类
public AudioRenderer newAudioRenderer(AppSettings settings); 
开发者ID:chototsu,项目名称:MikuMikuStudio,代码行数:2,代码来源:JmeSystemDelegate.java



注:本文中的com.jme3.audio.AudioRenderer类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
Java AWSLambdaClientBuilder类代码示例发布时间:2022-05-22
下一篇:
Java DetectorFactoryCollection类代码示例发布时间:2022-05-22
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap