Register for your free account! | Forgot your password?

Go Back   elitepvpers > Coders Den > General Coding
You last visited: Today at 09:31

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



[Java]could not get audio input stream from input file

Discussion on [Java]could not get audio input stream from input file within the General Coding forum part of the Coders Den category.

Reply
 
Old   #1
 
South-Park's Avatar
 
elite*gold: 65
Join Date: Apr 2010
Posts: 2,651
Received Thanks: 509
[Java]could not get audio input stream from input file

Ich Habe das Spiel Tetris geschrieben mit einer Hintergrundmusik, die bis zum GameOver in einem Loop läuft, passt alles auch. Die Datei ist 35,4 MB groß und .mp3. Wenn ich aber nen GameOver habe, soll eine andere Musi kommen und die alte stoppen. Klappt auch soweit, aber wenn er die neue Musik abspielen will, kommt die Exception daoben. Die Datei ist nur 282 KB groß und dauert 17 Sekunden, die andere 4 min. Weiß wer Rat, bzw. braucht ihr Code-Teile?

Die ganze Exception:
Jul 28, 2013 10:22:00 PM audio.Musik <init>
SEVERE: null
javax.sound.sampled.UnsupportedAudioFileException: could not get audio input stream from input file
South-Park is offline  
Old 07/28/2013, 22:54   #2
 
elite*gold: 0
Join Date: Jan 2012
Posts: 759
Received Thanks: 416
Welches Format hat die andere Datei?
dowhile is offline  
Old 07/29/2013, 00:19   #3
 
South-Park's Avatar
 
elite*gold: 65
Join Date: Apr 2010
Posts: 2,651
Received Thanks: 509
beide .mp3. Die erste hab ich schon ca nen Jahr, die andere gerade von Yt geladen und mit dem Video to MP3 Converter zu ner mp3 gemacht.
South-Park is offline  
Old 07/29/2013, 00:20   #4
 
coladose's Avatar
 
elite*gold: 106
Join Date: Jun 2010
Posts: 2,256
Received Thanks: 3,866
Die Exception sagt ja schon, dass das verwendete Dateiformat nicht unterstützt wird.

coladose is offline  
Old 07/29/2013, 00:21   #5
 
South-Park's Avatar
 
elite*gold: 65
Join Date: Apr 2010
Posts: 2,651
Received Thanks: 509
ja, aber es sind doch beide mp3s :/
South-Park is offline  
Old 07/29/2013, 00:30   #6
 
coladose's Avatar
 
elite*gold: 106
Join Date: Jun 2010
Posts: 2,256
Received Thanks: 3,866
So wie ich mir das herleiten kann, solltest du *.wav nehmen um vollen Javasupport zu bekommen. Einfach die Quali runterschrauben (ist eh 8bit). Das sollte klappen.

src:
coladose is offline  
Thanks
1 User
Old 07/29/2013, 00:37   #7
 
South-Park's Avatar
 
elite*gold: 65
Join Date: Apr 2010
Posts: 2,651
Received Thanks: 509
Das wusste ich bereits, aber bei wav hört sich das Lied dumpfer an, als wie mit mp3, aber gut, wenns nciht anders geht.
South-Park is offline  
Old 07/29/2013, 00:43   #8
 
Dr. Coxxy's Avatar
 
elite*gold: 0
Join Date: Feb 2011
Posts: 1,206
Received Thanks: 736
der youtube zu mp3 konverter hat vermutlich mist gebaut, probier mal einen anderen.
Dr. Coxxy is offline  
Reply


Similar Threads Similar Threads
java - buffered reader - input streamreader - if bedingung mit double
10/12/2012 - .NET Languages - 2 Replies
Hey ho ;D ich lerne gerade in der Schule bisschen Java (mit Java Editor) und habe leider nen Problem.. mein Lehrer önnte ich auch fragen, jedoch habe ich diesen bis nächsten donnerstag nicht.. ich will ein programm schreiben welches mir flächen berrechnet (bin noch ein anfänger..) Joa, leider gibt es schon am Anfang nen Fehler, also irgentwas will halt ned.. Ich habs mal als Bild gespeichert, weil viele den Java editor vllt. nicht haben, bzw. ein virus test hoch zuladen ist mir dann...
[QUESTION] Java: input keystrokes to other program?
09/23/2012 - General Coding - 1 Replies
Hi, I was wondering if i program a GUI and everything in java so that i can make keys get repeated multiple times (to create a bot) which i can do so far, is there a way to input these keystrokes to another program (a game)? I am not asking how to program all the rest just if there is a way to input it? I hope someone can help me. I prefer english answers but i can read german too just not write it :p Thanks in advance
input box as an image like php input boxes
03/22/2012 - AutoIt - 2 Replies
is it posible to do that? like... -> use image -> and put input box as image in gui so u can enter text in the image but u wont see this crappy input white box :) as i tryed and searched i dont think but maybe someone has figured it out
Read Input from .txt file
07/02/2011 - General Coding - 2 Replies
Hallo, Ich habe ein Programm, was über die CMD Konsole ausgeführt wird. In drei verschiedenen Dialogen werden Tasteneingaben eingelesen, um den weiteren Programmablauf zu bestimmen. Diese drei Eingaben will ich jetzt über eine Textdatei bestimmen Ich hab mir das ungefähr so vorgestellt: Man hat eine txt Datei die pro Zeile einen Buchstaben enthält: y



All times are GMT +2. The time now is 09:31.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.