• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Audio Unit with Java?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Unit with Java?


  • Subject: Re: Audio Unit with Java?
  • From: Brian Davies <email@hidden>
  • Date: Tue, 19 Jul 2005 11:39:26 +1000

Bill Stewart posted the following in 2002:

--------------

You can use AudioUnits with Java. We haven't made any comments about
creating an audio unti with Java. It would be possible, but I'd have to be
seriously concerned about the wisdom of doing this. If you have to do signal
processing in Java, then you're best to hook up your result with a render
callback to an existing audio unit, and do your DSP there. (You can also
call the AudioUnitRender of an upstream audio unit from here if you need to
obtain audio data from another unit in order to do your processing).

If you wanted to you could take the AudioUnit base classes in the SDK, and
write an audio unit base class that instantiates a Java VM, calls into some
Java Interface to do the work, etc... Kind of like the way the effect class
extends the AUBase class... Then in C you can handle the basic AU stuff, and
just call out to java when you need to (and in the process provide a nice
java like API)

Bill

---------------

I want to answer his question and ask again how to use Java.  I have a sophisticated click-removal program written and stable in Java, and I want to re-use the several thousand lines of computational code in an Audio Unit.  Translating to C++ is not rocket science, but it would be better to keep a common code base. And Java is supposed to be a first-rate citizen on Mac OS X.

Apple state "Because the Java API so closely follows the C API, ... the language choice is up to you, depending upon your development needs and requirements".  But my attempts to extend the Java CoreAudio class are thwarted by the fact that the constructors are private.

Final comment - if I am forced to use C++ then the Steinberg VST framework is an obvious competitor.  And it will be OK on Windows too. Surely that's not what apple really want to push??

Brian Davies

Mathematical Sciences Institute

Australian National University

Canberra ACT 0200

Australia

tel: (02)6125-2915

http://www.maths.anu.edu.au/~briand/sound


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Audio Unit with Java?
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: Lowest latency I/O
  • Next by Date: Re: core midi time stamping
  • Previous by thread: Re: Lowest latency I/O
  • Next by thread: Re: Audio Unit with Java?
  • Index(es):
    • Date
    • Thread