@@ -0,0 +1,1419 @@
+/*******************************************************************************%0A * Copyright (c) 2015-2016 Oak Ridge National Laboratory.%0A * All rights reserved. This program and the accompanying materials%0A * are made available under the terms of the Eclipse Public License v1.0%0A * which accompanies this distribution, and is available at%0A * http://www.eclipse.org/legal/epl-v10.html%0A *******************************************************************************/%0Apackage org.csstudio.display.builder.representation.javafx.sandbox;%0A%0Aimport java.io.File;%0A%0Aimport javafx.application.Application;%0Aimport javafx.scene.media.Media;%0Aimport javafx.scene.media.MediaPlayer;%0Aimport javafx.stage.Stage;%0A%0A/** JFX Audio demo%0A *  @author Kay Kasemir%0A */%0Apublic class AudioDemo extends Application%0A%7B%0A    public static void main(final String%5B%5D args)%0A    %7B%0A        launch(args);%0A    %7D%0A%0A    @Override%0A    public void start(final Stage stage)%0A    %7B%0A        stage.setTitle(%22Audio Demo%22);%0A        stage.show();%0A%0A        final File file = new File(%22../org.csstudio.display.builder.model/examples/audio/timer.wav%22);%0A        final Media audio = new Media(file.toURI().toString());%0A        final MediaPlayer player = new MediaPlayer(audio);%0A        player.setOnEndOfMedia( () -%3E player.stop());%0A        player.play();%0A%0A        player.setOnStopped(() -%3E%0A        %7B%0A            player.dispose();%0A            stage.close();%0A        %7D);%0A    %7D%0A%7D%0A

Add Audio Demo