🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2860

SV: ContinuousSoundGeneration

#2860
From: Johan Forsberg
Date: Fri, 25 Feb 2000 00:00
24 lines
1408 bytes
<nlaan> skrev i
diskussionsgruppsmeddelandet:893tm6$9s23@bornews.borland.com...
> Greetings!
>
> I have a problem...The sun.audio classes are no longer availlable.  I am
> attempting to find a substitute for the ContinuousAudioDataStream class
but
> have had no luck.  What we are attempting to do is generate continuous
sound
> output that various according to user input.  Our old method involved
> generating bytes to a ContinuousAudioDataStream.  I have tried several
> classes in the Java1.3 javax.sound package but have found nothing that
will
> do what we need.  Can anyone point me in the right direction???
>

Trying looking at javax.sound.sampled.SourceDataLine .

Something along the lines of

SourceDataLine sdl=AudioSystem.getMixer(someMixer).getLine(someDataLine);
sdl.open(format);
sdl.write(buff, 0, buff.length);
Technical Details
Message-ID: <895do0$av52@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <893tm6$9s23@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,973cbaf155b24c23
X-Google-Attributes: gid1089d0,public
From: "Johan Forsberg" <jfo@SPAM_SPAM_EGGS_SPAMstmf.se>
Subject: SV: ContinuousSoundGeneration
Date: 2000/02/25
Message-ID: <895do0$av52@bornews.borland.com>
X-Deja-AN: 589728956
References: <893tm6$9s23@bornews.borland.com>
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
Newsgroups: borland.public.jbuilder.java.api