Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: audio capture



Alex Nicolaou <email@hidden> wrote:

>I was about to embark on an application that involves audio capture and
>couldn't get JMF to work. The QT for Java bindings seem to work, but I'm
>not familiar with the framework. Is there a good FAQ about doing audio on
>osx and/or the pros and cons of JMF versus QT for Mac multimedia
>development?

The JavaSound API, javax.sound, was added to J2SE at 1.3. It was
previously only part of JMF. The javax.sound classes are thus part of
every Java on Mac OS X. What capabilities are available and how bug-free
they are depends on the particular release.

AFAICT javax.sound.sampled input and output work on 1.4.1_01-39 and up. So
far, my main test-case is the JavaSoundDemo app, which is included with the
Apple Developer Tools install, and can be found on your local hard disk at:
/Developer/Examples/Java/Sound/JavaSoundDemo/

I just double-clicked the supplied jar and it worked.

I should tell you that only 44 KHz, 16-bit format will work for recording,
but you can convert it to other formats you might want.

You should also check out Tritonus, which is an independent implementation
of JavaSound, and may be able to give you things that aren't part of the
stock Mac OS X Java installation. The JavaSound API is very modular,
almost pathologically so, and plugins (Java extensions) can add
functionality with relative ease:
<http://www.tritonus.org/>

-- GG
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.




Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.