Examples of AudioManager


Examples of chatroom.audio.manager.AudioManager

    }

    @Override
    public void openAudio(int port) {
        try {
            AudioManager am = AudioManager.getManager(serverIP, port);
            if (am == null) {
                JOptionPane.showMessageDialog(this, "You're already in a VoIP.", "Audio error", JOptionPane.ERROR_MESSAGE);
            } else {
                am.setVisible(true);
            }
        } catch (IOException ex) {
            Logger.getLogger(ChatroomClient.class.getName()).log(Level.SEVERE, null, ex);
        } catch (LineUnavailableException ex) {
            Logger.getLogger(ChatroomClient.class.getName()).log(Level.SEVERE, null, ex);
View Full Code Here

Examples of de.zelosfan.framework.Audio.AudioManager

        gameStateManager = new GameStateManager();

        rendermanager = new Rendermanager(Rendermode.WORLD, Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), Gdx.graphics.getWidth(), Gdx.graphics.getHeight(), shaderProgramObjectMap);
        cameraManager = new CameraManager(rendermanager.camera);

        audioManager = new AudioManager(0.5f, 0.5f, false, false, sfxMap);
        audioManager.getMusicFiles(MUSICPATH);
        audioManager.playNextMusicTrack();

        Main.gameStateManager.instanceHashMap.put("Tutorial", new TutorialInstance());
        Main.gameStateManager.setCurrentGameState(new Tutorial(Main.gameStateManager, true));
View Full Code Here

Examples of org.terasology.audio.AudioManager

    @Override
    protected void setupAssetManager() {
        setupEmptyAssetManager();

        AssetManager assetManager = CoreRegistry.get(AssetManager.class);
        AudioManager audioManager = CoreRegistry.get(AudioManager.class);
        AssetType.registerAssetTypes(assetManager);

        assetManager.setAssetFactory(AssetType.PREFAB, new AssetFactory<PrefabData, Prefab>() {

            @Override
            public Prefab buildAsset(AssetUri uri, PrefabData data) {
                return new PojoPrefab(uri, data);
            }
        });
        assetManager.setAssetFactory(AssetType.SHAPE, new AssetFactory<BlockShapeData, BlockShape>() {

            @Override
            public BlockShape buildAsset(AssetUri uri, BlockShapeData data) {
                return new BlockShapeImpl(uri, data);
            }
        });

        assetManager.setAssetFactory(AssetType.UI_SKIN, new AssetFactory<UISkinData, UISkin>() {
            @Override
            public UISkin buildAsset(AssetUri uri, UISkinData data) {
                return new UISkin(uri, data);
            }
        });

        assetManager.setAssetFactory(AssetType.SOUND, audioManager.getStaticSoundFactory());
        assetManager.setAssetFactory(AssetType.MUSIC, audioManager.getStreamingSoundFactory());
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.