• 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 Capture (Java)
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Audio Capture (Java)


  • Subject: Re: Audio Capture (Java)
  • From: Gerd Castan <email@hidden>
  • Date: Mon, 22 Jul 2002 22:42:17 +0200

Zachary Crockett <email@hidden> wrote:

(I'm glad to hear someone else say the docs for CoreAudio aren't the best.. I've had a heck of a time trying to learn the API.)
They are lousy. Or at least bad enough that I fear that the
one who made the Java API made a big mistake that makes it
impossible to write aa clean Java app with sound input...


After several attempts, I'm stumped -- I'm using the HAL for capture. I get the default input AudioDevice using AudioHardware.getDefaultInputDevice(), and register an
This is exacly the point where I gave up for the moment. A clean code
must get the properties of AHConstants.kAudioDevicePropertyStreamConfiguration
and store the result in an com.apple.audio.util.AudioBufferList
In the time I spent I came to the conclusion that there is a
design bug in the Java API that I can't instantiate such an object
and therefore can't store the results of that call.
(there is a second bug: the javadocs aren't created with class-use
so I can't be sure about that. And there is no source code so
I can't create the javadocs myself)

You didn't do what I couldn't do and so...

AudioDeviceIOProc... However, the inInputData parameter of the IOProc doesn't seem to actually contain anything but near-silence even if I
... are you sure that you know what device you are listening to?
Is it the same you are screaming to? Tried to insert an audio CD?


scream and dance around my mic, and no matter whether I use an external mic or the internal one. Here's some sample data:

-0.008362072 -0.00347911
-0.008423109 -0.00347911
-0.008423109 -0.003540147
-0.00839259 -0.0035096286
-0.008423109 -0.0035096286
-0.008423109 -0.0035096286
-0.00839259 -0.00347911
-0.008423109 -0.003540147
-0.00839259 -0.0035096286
-0.008362072 -0.0035096286
-0.008423109 -0.0035096286
-0.008423109 -0.003540147
-0.008423109 -0.0035096286
-0.008423109 -0.0035096286
-0.00839259 -0.0035096286
-0.00839259 -0.00347911
-0.00839259 -0.00347911

It's all about like that... I thought maybe the small differences were significant, but they wouldn't render any recognizeable sound (using either AudioDeviceOutputUnit.renderSlice, or the default output device and another IOProc... I tried both) even if multiplied by 50000. In case it matters, I'm on a PowerBook G3, OS X 10.1.5.

Thanks for the help, I'm looking forward to being called a moron for forgetting a single simple step... that is, one line of code...
;)
Zac


--__--__--

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


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

  • Prev by Date: Re: Audio Capture (Java)
  • Next by Date: RE: Setting sample rate
  • Previous by thread: Re: Audio Capture (Java)
  • Next by thread: Re: Audio Capture (Java)
  • Index(es):
    • Date
    • Thread