Re: Audio Capture (Java)
Re: Audio Capture (Java)
- Subject: Re: Audio Capture (Java)
- From: "Michael C. Thornburgh" <email@hidden>
- Date: Mon, 22 Jul 2002 10:13:59 -0700 (PDT)
that sounds to me like the data source for the input
side of your powerbook g3's onboard audio device isn't
set to something useful. there are four sources for
the input side (at least on my bronze-no-firewire-g3):
External microphone/Line in
Sound Input
Internal microphone
Zoomed Video
if you're not getting anything other than 1-1.5 bits
of noise even when a microphone is connected to the
sound input port, then i bet your source is set to
"Zoomed Video".
you can change the input source by turning on speech
recognition and choosing from the "Microphone" pulldown
in the "Listening" tab. or, of course, you can set
it yourself in your program. :)
-mike
>
Subject: Audio Capture (Java)
>
From: Zachary Crockett <email@hidden>
>
To: email@hidden
>
Date: Sun, 21 Jul 2002 18:18:34 -0500
>
>
Hey there all, another core audio newbie needs help...
>
>
I'm writing a Java app to capture audio, modify it through a UI, and
>
stream it out. I completed the project using Java Sound, later found
>
out that's currently unsupported, so back I went to the drawing board.
>
(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.)
>
>
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
>
AudioDeviceIOProc... However, the inInputData parameter of the IOProc
>
doesn't seem to actually contain anything but near-silence even if I
>
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.
_______________________________________________
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.