{"action":"created","issue":{"url":"https://api.github.com/repos/keze87/TP2/issues/35","repository_url":"https://api.github.com/repos/keze87/TP2","labels_url":"https://api.github.com/repos/keze87/TP2/issues/35/labels{/name}","comments_url":"https://api.github.com/repos/keze87/TP2/issues/35/comments","events_url":"https://api.github.com/repos/keze87/TP2/issues/35/events","html_url":"https://github.com/keze87/TP2/issues/35","id":190510318,"number":35,"title":"Sonidos","user":{"login":"wjma","id":9827712,"avatar_url":"https://avatars.githubusercontent.com/u/9827712?v=3","gravatar_id":"","url":"https://api.github.com/users/wjma","html_url":"https://github.com/wjma","followers_url":"https://api.github.com/users/wjma/followers","following_url":"https://api.github.com/users/wjma/following{/other_user}","gists_url":"https://api.github.com/users/wjma/gists{/gist_id}","starred_url":"https://api.github.com/users/wjma/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wjma/subscriptions","organizations_url":"https://api.github.com/users/wjma/orgs","repos_url":"https://api.github.com/users/wjma/repos","events_url":"https://api.github.com/users/wjma/events{/privacy}","received_events_url":"https://api.github.com/users/wjma/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2016-11-19T17:58:49Z","updated_at":"2016-11-20T22:34:13Z","closed_at":null,"body":"Hola, estuve viendo como integrar los sonidos en el juego pero no logro que un sonido se pause cuando por ejemplo se cambia de escena.\r\nEstaba pensando en crear una clase asi: \r\n\r\n````java\r\npublic class Sonido {\r\n\tpublic static MediaPlayer sonidoIntro;\r\n\tpublic static MediaPlayer click;\r\n\tprivate String rutaSonido = \"src/fiuba/algo3/vista/Sonidos/\";\r\n\r\n\tpublic Sonido(){\r\n\t\tsonidoIntro = setSonido(\"Pokemon_Opening.mp3\");\r\n\t\tclick = setSonido(\"click.mp3\");\r\n\t\t//sonidoIntro.setCycleCount(MediaPlayer.INDEFINITE);\r\n\t}\r\n\r\n\t/*Crea y devuelve un sonido*/\r\n\tprivate MediaPlayer setSonido(String nombreSonido) {\r\n\t\tMedia sonido = new Media(new File(rutaSonido + nombreSonido).toURI().toString());\r\n\t\tMediaPlayer mediaPlayer = new MediaPlayer(sonido);\r\n\t\treturn mediaPlayer;\r\n\t}\r\n}\r\n````\r\n\r\nLa cosa es que reproduzco un sonido en el menu principal y despues deberia cambiar de sonido en la escena de las batallas, pero al querer hacer esto, no se pausa en sonido. Calculo que tiene algo en que hago esto( play y pause) en clases diferentes.\r\nAsi que si alguien tiene tiempo y se toma la molestia podria ayudarme un poco con eso?"},"comment":{"url":"https://api.github.com/repos/keze87/TP2/issues/comments/261811419","html_url":"https://github.com/keze87/TP2/issues/35#issuecomment-261811419","issue_url":"https://api.github.com/repos/keze87/TP2/issues/35","id":261811419,"user":{"login":"keze87","id":9655998,"avatar_url":"https://avatars.githubusercontent.com/u/9655998?v=3","gravatar_id":"","url":"https://api.github.com/users/keze87","html_url":"https://github.com/keze87","followers_url":"https://api.github.com/users/keze87/followers","following_url":"https://api.github.com/users/keze87/following{/other_user}","gists_url":"https://api.github.com/users/keze87/gists{/gist_id}","starred_url":"https://api.github.com/users/keze87/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/keze87/subscriptions","organizations_url":"https://api.github.com/users/keze87/orgs","repos_url":"https://api.github.com/users/keze87/repos","events_url":"https://api.github.com/users/keze87/events{/privacy}","received_events_url":"https://api.github.com/users/keze87/received_events","type":"User","site_admin":false},"created_at":"2016-11-20T22:34:13Z","updated_at":"2016-11-20T22:34:13Z","body":"Los botones del menú tienen un sonido, solo hace falta hacer copypaste con los demás botones."}}
{"actor":{"display_login":"keze87"}}