Article View: borland.public.jbuilder.java.language
Article #16954URGENT! newAudioClip() and midi files...
From: Jo�lle
Date: Wed, 06 Jan 1999 00:00
Date: Wed, 06 Jan 1999 00:00
31 lines
1574 bytes
1574 bytes
Hi!
I have create an application and I would like to play sounds (midi files).
I have used the Audioclip object with the newAudioClip method for load my
files in a array like this:
AudioClip[] piano = new AudioClip[24];
for (j=0; j<24;j++) {
path = "file:sons/";
file = "P" + Integer.toString(j) + ".mid";
path = path + file;
//Change path into URL...
try { sound = new URL(path); }
catch (MalformedURLException e) {
sound = null;
e.printStackTrace();
}
piano[j] = newAudioClip(sound);
}
And I play my sound with the play method like "piano[i].play()]"
For the begining, the program run well. It plays the sounds correctly.
But after some play, I don't hear any sounds !!!
I have very desappointed...
Can anyone help me pleeeaaassseeee?
Jo�lle
joelled@videotron.ca
Technical Details
Message-ID:
<01be39b0$2fc94720$e60afdcf@zezette>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII X-Google-Thread: f5d71,8dad0433a47c06a0,start X-Google-Attributes: gidf5d71,public X-Google-Thread: f74b3,8dad0433a47c06a0,start X-Google-Attributes: gidf74b3,public X-Google-Thread: 10a146,8dad0433a47c06a0,start X-Google-Attributes: gid10a146,public From: "Jo�lle" <joelled@videotron.ca> Subject: URGENT! newAudioClip() and midi files... Date: 1999/01/06 Message-ID: <01be39b0$2fc94720$e60afdcf@zezette> X-Deja-AN: 429465688 X-Complaints-To: abuse@videotron.net X-Trace: weber.videotron.net 915642498 207.253.10.230 (Wed, 06 Jan 1999 12:08:18 EDT) NNTP-Posting-Date: Wed, 06 Jan 1999 12:08:18 EDT Newsgroups: borland.public.jbuilder.java.language,comp.lang.java,comp.lang.java.programmer