Article View: borland.public.jbuilder.java.api
Article #3551Re: Playing .au files
From: Andrew Bennett
Date: Wed, 03 Dec 1997 00:00
Date: Wed, 03 Dec 1997 00:00
33 lines
1416 bytes
1416 bytes
Peter Thompson wrote: > I'm trying to play .au files that are stored in a database. I understand > I need to add some code to a button, to reference the DataSet the sounds > are stored in and the method Play(). > > But how do I implement this? You'll need to stream out the blob field from the database into an AudioClip. You might want to look at the source for the Image JBCL component, as I believe it has code to stream an image from a blob in a database. Same type of approach. > Also, how can I refresh my data after it has been saved to the db? (The > autoincrement number will not show until the data is refreshed.) see refresh() in the JBCL Reference of borland.jbcl.dataset.DataSet. Andrew -- Andrew Bennett -> abennett@borland.com JBuilder info -> http://www.borland.com/jbuilder/ JBuilder newsgroups info -> http://www.borland.com/newsgroups/ **** Please don't post a reply AND send email. Do one. I'll see it. ****
Technical Details
Message-ID:
<3485C2DE.C3A89D95@borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3485BAB2.9B2D5687@homeaway.demon.co.uk>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1089d0,2db3e82f6f3b72bd X-Google-Attributes: gid1089d0,public From: Andrew Bennett <abennett@borland.com> Subject: Re: Playing .au files Date: 1997/12/03 Message-ID: <3485C2DE.C3A89D95@borland.com> X-Deja-AN: 294948679 References: <3485BAB2.9B2D5687@homeaway.demon.co.uk> Organization: None Newsgroups: borland.public.jbuilder.java.api