{"id":1839,"date":"2014-08-04T16:10:00","date_gmt":"2014-08-04T21:10:00","guid":{"rendered":"http:\/\/linuxitos.com\/main\/reproducir-sonido-en-segundo-plano-usando-hilos-en-java\/"},"modified":"2014-08-04T16:10:00","modified_gmt":"2014-08-04T21:10:00","slug":"reproducir-sonido-en-segundo-plano-usando-hilos-en-java","status":"publish","type":"post","link":"https:\/\/linuxitos.com\/main\/reproducir-sonido-en-segundo-plano-usando-hilos-en-java\/","title":{"rendered":"Reproducir sonido en segundo plano usando hilos en java"},"content":{"rendered":"<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\">Es posible que necesiten reproducir alg\u00fan sonido en alguna de sus aplicaciones. Hace poco estaba desarrollando un juego en java, y necesitaba reproducir sonidos. Una manera de hacer es la siguiente.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\">Por ahora no tiene los m\u00e9todos de pausar, parar, etc.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\">Ser\u00e1 necesario crear una clase que se llama ReproducirSonidos y la otra llamada PruebasSonidos que es la clase principal.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #cc0000; font-family: Verdana, sans-serif;\">Nota: Dentro de la carpeta del proyecto, es necesario crear una carpeta llamada sonidos y almacenen ah\u00ed los sonidos que usen en su proyecto.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"clear: both; text-align: center;\"><a href=\"http:\/\/1.bp.blogspot.com\/-XljR4nA8DX8\/U9_ykAqsSNI\/AAAAAAAAAOo\/3FnCsqwzZbM\/s1600\/Captura+de+pantalla+de+2014-08-04+15:49:58.png\" style=\"margin-left: 1em; margin-right: 1em;\"><img loading=\"lazy\" decoding=\"async\" border=\"0\" src=\"http:\/\/1.bp.blogspot.com\/-XljR4nA8DX8\/U9_ykAqsSNI\/AAAAAAAAAOo\/3FnCsqwzZbM\/s1600\/Captura+de+pantalla+de+2014-08-04+15:49:58.png\" height=\"223\" width=\"400\" \/><\/a><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">\/*<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* Nombre de la clase: ReproducirSonidos<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* Descripci\u00f3n: Controla el sonido que se est\u00e9 reproduciendo, utilizando un hilo<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;sin opciones de pausea, stop o reanudar, simplemente lo ejecuta<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; y comienza la reproducci\u00f3n de la canci\u00f3n, y espera hasta que finalice.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*\/<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">package pruebassonidos;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import java.io.File;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import java.io.IOException;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.AudioFormat;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.AudioInputStream;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.AudioSystem;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.DataLine;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.LineUnavailableException;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.SourceDataLine;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">import javax.sound.sampled.UnsupportedAudioFileException;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">\/**<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* @author gsu Jes\u00fas Fernando Merino Merino<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*\/<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">public class ReproducirSonidos extends Thread{<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; String mensaje;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; String sonido;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; int timeRep=0;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; boolean stop=false;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public ReproducirSonidos(){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; mensaje=\u00bbHola\u00bb;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public ReproducirSonidos(String sonido){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; this.sonido=sonido;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public ReproducirSonidos(String sonido,boolean stop){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; this.sonido=sonido;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; stop=false;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public void run(){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; repSonido(sonido);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(\u00abEste proceso ha terminado:\u00bb+this.getName());<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public void setMensaje(String msj){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; this.mensaje = msj;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp;&nbsp;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public void repSonido(String sonido){<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; SourceDataLine soundLine = null;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; int BUFFER_SIZE = 64*1024; &nbsp;\/\/ 64 KB<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; \/\/ Set up an audio input stream piped from the sound file.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; try {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;File soundFile = new File(sonido);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AudioInputStream audioInputStream = AudioSystem.getAudioInputStream(soundFile);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;AudioFormat audioFormat = audioInputStream.getFormat();<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;DataLine.Info info = new DataLine.Info(SourceDataLine.class, audioFormat);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine = (SourceDataLine) AudioSystem.getLine(info);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine.open(audioFormat);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine.start();<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;int nBytesRead = 0;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;byte[] sampledData = new byte[BUFFER_SIZE];<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;while (nBytesRead != -1) {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; nBytesRead = audioInputStream.read(sampledData, 0, sampledData.length);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; if (nBytesRead &gt;= 0) {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;\/\/ Writes audio data to the mixer via this source data line.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine.write(sampledData, 0, nBytesRead);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;}<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; } catch (UnsupportedAudioFileException | IOException | LineUnavailableException ex) {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; System.err.println(\u00abError: \u00ab+ex.getMessage());<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; } finally {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine.drain();<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;soundLine.close();<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">}<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\">Clase principal del proyecto&#8230;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">\/*<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* Clase: PruebaSonidos<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* Descripci\u00f3n: Programa que reproduce una caci\u00f3n en segundo plano, usando hilos.<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*\/<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">package pruebassonidos;<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">\/**<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;* @author gXfer Jesus Fernando Merino Merino<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp;*\/<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">public class PruebasSonidos {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; \/**<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp;* @param args the command line arguments<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp;*\/<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; public static void main(String[] args) {<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; ReproducirSonidos reproducir = new ReproducirSonidos(\u00absonidos\/ajws.au\u00bb);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; reproducir.start();<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; &nbsp; &nbsp; System.out.println(\u00abDespu\u00e9s de la canci\u00f3n\u00bb);<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">&nbsp; &nbsp; }<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\"><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"color: #b45f06; font-family: Verdana, sans-serif;\">}<\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\"><br \/><\/span><\/div>\n<div style=\"text-align: justify;\"><span style=\"font-family: Verdana, sans-serif;\">Pueden descargar el proyecto aqu\u00ed. Gracias por visitar, si tienen dudas comenten por favor.<\/span><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Es posible que necesiten reproducir alg\u00fan sonido en alguna de sus aplicaciones. Hace poco estaba desarrollando un juego en java, y necesitaba reproducir sonidos. Una manera de hacer es la siguiente. Por ahora no tiene los m\u00e9todos de pausar, parar, etc. Ser\u00e1 necesario crear una clase que se llama ReproducirSonidos y la otra llamada PruebasSonidos [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[87,1470,446,4,1498,1495,1496,1497,1472],"tags":[],"class_list":["post-1839","post","type-post","status-publish","format-standard","hentry","category-gnome","category-hilos","category-java","category-linux","category-play","category-reproducir","category-sonido","category-sound","category-thread"],"_links":{"self":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1839","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/comments?post=1839"}],"version-history":[{"count":0,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/posts\/1839\/revisions"}],"wp:attachment":[{"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/media?parent=1839"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/categories?post=1839"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/linuxitos.com\/main\/wp-json\/wp\/v2\/tags?post=1839"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}