Article View: borland.public.jbuilder.java.language
Article #14587Re: Application Sound from File
From: John Taber
Date: Tue, 17 Aug 1999 00:00
Date: Tue, 17 Aug 1999 00:00
19 lines
1437 bytes
1437 bytes
Still no luck - the problem is that the newAudioClip wants a URL - putting in
the quoted file location returns an error that newAudioClip(string) doesn't
exist, but when I try to create a URL from the string using either new
URL("...") or even f.toURL I get malformed url exceptions - any other
suggestions? ps. have been trying to use a ".mid" file which is supposed to
be supported.
John
Tor Iver Wilhelmsen wrote:
> John Taber <jttaber@tabermatics.com> writes:
>
> > newAudioClip("file:///c|/myfolder/soundfile.wav") format with no success
> > - gives me an error on the URL - yet I copied the URL directly from my
> > browser to insure the right syntax.
>
> It's not the right syntax, it's Netscape's hack of a syntax to
> compensate for bugs in their parser ages ago: Replace the vertical bar
> '|' with a colon ':'.
Technical Details
Message-ID:
<37B906A4.26CDE21A@tabermatics.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<37B7A7C7.89B5B9EC@tabermatics.com> <u4shzt00s.fsf@sds.no>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f74b3,41b78ce630b25993 X-Google-Attributes: gidf74b3,public From: John Taber <jttaber@tabermatics.com> Subject: Re: Application Sound from File Date: 1999/08/17 Message-ID: <37B906A4.26CDE21A@tabermatics.com> X-Deja-AN: 513778616 Content-Transfer-Encoding: 7bit References: <37B7A7C7.89B5B9EC@tabermatics.com> <u4shzt00s.fsf@sds.no> X-Accept-Language: en Content-Type: text/plain; charset=us-ascii Organization: Another Netscape Collabra Server User Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.language