{"action":"created","issue":{"url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/553","repository_url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java","labels_url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/553/labels{/name}","comments_url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/553/comments","events_url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/553/events","html_url":"https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/553","id":378250287,"node_id":"MDU6SXNzdWUzNzgyNTAyODc=","number":553,"title":"ERROR ev3dev.actuators.Sound - mark/reset not supported","user":{"login":"robl0377","id":8970255,"node_id":"MDQ6VXNlcjg5NzAyNTU=","avatar_url":"https://avatars3.githubusercontent.com/u/8970255?v=4","gravatar_id":"","url":"https://api.github.com/users/robl0377","html_url":"https://github.com/robl0377","followers_url":"https://api.github.com/users/robl0377/followers","following_url":"https://api.github.com/users/robl0377/following{/other_user}","gists_url":"https://api.github.com/users/robl0377/gists{/gist_id}","starred_url":"https://api.github.com/users/robl0377/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/robl0377/subscriptions","organizations_url":"https://api.github.com/users/robl0377/orgs","repos_url":"https://api.github.com/users/robl0377/repos","events_url":"https://api.github.com/users/robl0377/events{/privacy}","received_events_url":"https://api.github.com/users/robl0377/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-11-07T11:33:21Z","updated_at":"2018-11-08T19:16:40Z","closed_at":null,"author_association":"NONE","body":"Have installed ev3dev on debian stretch on my EV3 Brick and tried the sample program \r\n`example.robotics.ev3.actuator.PlaySoundFilesExample` from yesterday's template-project-gradle:\r\n\r\n```java\r\npackage example.robotics.ev3.actuator;\r\n\r\nimport ev3dev.actuators.Sound;\r\nimport ev3dev.utils.JarResource;\r\nimport javax.sound.sampled.LineUnavailableException;\r\nimport javax.sound.sampled.UnsupportedAudioFileException;\r\nimport java.io.File;\r\nimport java.io.IOException;\r\n\r\npublic class PlaySoundFilesExample {\r\n    public static void main(String[] args) throws IOException, UnsupportedAudioFileException, LineUnavailableException {\r\n        //Sound courtesy: http://www.wavsource.com/video_games/duke_nukem.htm\r\n        String filePath = \"ready_4_action.wav\";\r\n        String result = JarResource.export(filePath);\r\n        Sound sound = Sound.getInstance();\r\n        File file = new File(result);\r\n        sound.playSample(file);\r\n        JarResource.delete(result);\r\n    }\r\n}\r\n```\r\n\r\nOn the ssh console I get this:\r\n```\r\n> Task :remoteRun\r\njava -server -jar /home/robot/EV3dev_Examples-all-0.3.0.jar \r\nev3dev#18|2018-11-07 10:51:04 [main] INFO  ev3dev.actuators.Sound - Providing a Sound instance\r\nev3dev#18|2018-11-07 10:51:05 [main] DEBUG ev3dev.hardware.EV3DevDistros - Debian Stretch detected\r\nev3dev#18|2018-11-07 10:51:05 [main] DEBUG ev3dev.hardware.EV3DevDistros - Debian Stretch detected\r\nev3dev#18|2018-11-07 10:51:05 [main] DEBUG ev3dev.hardware.EV3DevFileSystem - Root Path: /sys/class\r\nev3dev#18|2018-11-07 10:51:05 [main] INFO  ev3dev.actuators.Sound - Creating a instance of Sound\r\nev3dev#18|2018-11-07 10:51:06 [main] **ERROR ev3dev.actuators.Sound - mark/reset not supported**\r\nev3dev#18|java.io.IOException: mark/reset not supported\r\nev3dev#18|\tat java.base/java.io.InputStream.reset(Unknown Source)\r\nev3dev#18|\tat java.desktop/com.sun.media.sound.SunFileReader.getAudioFileFormat(Unknown Source)\r\nev3dev#18|\tat java.desktop/com.sun.media.sound.WaveExtensibleFileReader.getAudioInputStream(Unknown Source)\r\nev3dev#18|\tat java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)\r\nev3dev#18|\tat ev3dev.actuators.Sound.playSample(Sound.java:149)\r\nev3dev#18|\tat ev3dev.actuators.Sound.playSample(Sound.java:169)\r\nev3dev#18|\tat example.robotics.ev3.actuator.PlaySoundFilesExample.main(PlaySoundFilesExample.java:22)\r\nev3dev#18|Exception in thread \"main\" java.lang.RuntimeException: java.io.IOException: mark/reset not supported\r\nev3dev#18|\tat ev3dev.actuators.Sound.playSample(Sound.java:159)\r\nev3dev#18|\tat ev3dev.actuators.Sound.playSample(Sound.java:169)\r\nev3dev#18|\tat example.robotics.ev3.actuator.PlaySoundFilesExample.main(PlaySoundFilesExample.java:22)\r\nev3dev#18|Caused by: java.io.IOException: mark/reset not supported\r\nev3dev#18|\tat java.base/java.io.InputStream.reset(Unknown Source)\r\nev3dev#18|\tat java.desktop/com.sun.media.sound.SunFileReader.getAudioFileFormat(Unknown Source)\r\nev3dev#18|\tat java.desktop/com.sun.media.sound.WaveExtensibleFileReader.getAudioInputStream(Unknown Source)\r\nev3dev#18|\tat java.desktop/javax.sound.sampled.AudioSystem.getAudioInputStream(Unknown Source)\r\nev3dev#18|\tat ev3dev.actuators.Sound.playSample(Sound.java:149)\r\nev3dev#18|\t... 2 more\r\n```\r\n\r\nJava Runtime:\r\n```\r\nopenjdk version \"10\" 2018-03-20\r\nOpenJDK Runtime Environment (build 10+46-ev3)\r\nOpenJDK Client VM (build 10+46-ev3, mixed mode, sharing)\r\n```\r\n\r\nMain libraries:\r\n* ev3dev-lang-java-2.4.7-SNAPSHOT.jar\r\n* lejos-commons-0.7.1.jar"},"comment":{"url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/comments/437121879","html_url":"https://github.com/ev3dev-lang-java/ev3dev-lang-java/issues/553#issuecomment-437121879","issue_url":"https://api.github.com/repos/ev3dev-lang-java/ev3dev-lang-java/issues/553","id":437121879,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNzEyMTg3OQ==","user":{"login":"jabrena","id":147263,"node_id":"MDQ6VXNlcjE0NzI2Mw==","avatar_url":"https://avatars0.githubusercontent.com/u/147263?v=4","gravatar_id":"","url":"https://api.github.com/users/jabrena","html_url":"https://github.com/jabrena","followers_url":"https://api.github.com/users/jabrena/followers","following_url":"https://api.github.com/users/jabrena/following{/other_user}","gists_url":"https://api.github.com/users/jabrena/gists{/gist_id}","starred_url":"https://api.github.com/users/jabrena/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jabrena/subscriptions","organizations_url":"https://api.github.com/users/jabrena/orgs","repos_url":"https://api.github.com/users/jabrena/repos","events_url":"https://api.github.com/users/jabrena/events{/privacy}","received_events_url":"https://api.github.com/users/jabrena/received_events","type":"User","site_admin":false},"created_at":"2018-11-08T19:16:40Z","updated_at":"2018-11-08T19:16:40Z","author_association":"MEMBER","body":"Hi @robl0377, \r\n\r\nthis problem was solved this week.\r\nWe are releasing a new version if you like, we could release a new snapshot tomorrow.\r\n\r\nJuan Antonio\r\n"}}
{"actor":{"display_login":"jabrena"}}