From 1194776f927cb21de0ea1fd18e25bf38b80ae75f Mon Sep 17 00:00:00 2001 From: Karel Goderis Date: Tue, 3 Feb 2015 09:32:04 +0100 Subject: [PATCH] Fix FileInputStream path in org.openhab.io.multimedia.actions.audio Signed-off-by: Karel Goderis --- .../src/main/java/org/openhab/io/multimedia/actions/Audio.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java b/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java index b5059a5b0782a..a55cc38ef3c1f 100644 --- a/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java +++ b/bundles/core/org.openhab.core.compat1x/src/main/java/org/openhab/io/multimedia/actions/Audio.java @@ -50,6 +50,7 @@ public class Audio { + private static final String RUNTIME_DIR ="runtime"; private static final String SOUND_DIR = "sounds"; private static final Logger logger = LoggerFactory.getLogger(Audio.class); @@ -65,7 +66,7 @@ public class Audio { static public void playSound( @ParamDoc(name="filename", text="the filename with extension") String filename) { try { - InputStream is = new FileInputStream(SOUND_DIR + File.separator + filename); + InputStream is = new FileInputStream(RUNTIME_DIR + File.separator + SOUND_DIR + File.separator + filename); if (filename.toLowerCase().endsWith(".mp3")) { Player player = new Player(is); playInThread(player);