Using Jess61 and Java 1.4.2, I am trying to use the
javax.sound.sampled API, in particular, I need to use the following constructor

  DataLine.Info(Class lineClass, AudioFormat format, int bufferSize) 

with the lineClass parameter being from the interface javax.sound.sampled.Clip used 
like the following Java call

  DataLine.Info info = new DataLine.Info(
      Clip.class,
      stream.getFormat(), 
      ((int)stream.getFrameLength()*format.getFrameSize()));

I am trying to write this in Jess and have trouble with the Clip.class part - the 
following does not work:

 (bind ?info (new javax.sound.sampled.DataLine$Info 
    (get-member javax.sound.sampled.Clip class) 
    ; ... other arguments to constructor
 ))

Any assistance would be greatly appreciated.



Phil Reed


-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

Search Smarter - get the new eXact Search Bar for free!
http://www.exactsearchbar.com/

--------------------------------------------------------------------
To unsubscribe, send the words 'unsubscribe jess-users [EMAIL PROTECTED]'
in the BODY of a message to [EMAIL PROTECTED], NOT to the list
(use your own address!) List problems? Notify [EMAIL PROTECTED]
--------------------------------------------------------------------

Reply via email to