Re: AUHAL silence
Re: AUHAL silence
- Subject: Re: AUHAL silence
- From: William Stewart <email@hidden>
- Date: Mon, 26 Jul 2004 15:00:11 -0700
Time and again we recommend to people to use the
CAStreamBasicDescription class in the SDK (in PublicUtility)... As an
FYI, we ourselves rarely use a "naked" ASBD, but rather use this class
because:
(1) saves some of these kinds of errors (if that is indeed your problem)
(2) gives you a good print out of the format (english for the lpcm
flags for instance instead of 'B')
Also, the Audio Converter (and most of the other objects in CoreAudio)
implements a print method that can be invoked using the CAShow function
(in the AudioToolbox headers)
This will tell you what your input and output formats are, and the
converters involved (oh, and BTW the formats are printed as
CAStreamBasicDescription prints them)
If the technotes aren't using this then they should be (and I'll make
sure the person who is writing them checks)
Bill
On 26/07/2004, at 2:46 PM, Daniel Todd Currie wrote:
>
I had the same trouble as you several weeks ago, and I put the project
>
away in disgust. I opened it up recently, ran it to remind myself
>
what was left to be done, and it worked just fine. I am convinced
>
that it is random blunders like these that are the lifeblood of
>
AudioUnit development.
>
>
-- DTC
>
>
>
On 2004 Jul 26, at 12:17, Dominic Feira wrote:
>
>
> I'm sorry if this is a dupicate. The first e-mail didn't show up on
>
> the list.
>
>
>
> I am trying to implement recording from a usb microphone according to
>
> the example in technote TN2091.
>
>
>
> I believe I have everything done correctly, except I am still
>
> receiving only silence from in the Input proc. I have noticed that
>
> many people have had the same problem as I do. I have yet to find
>
> the solution on the list archives and I have looked A LOT.
>
>
>
> Interesting to note, is that I also implemented basically the same
>
> thing directly with the audio device and I am trying to use an audio
>
> converter to convert from the devices input to integer audio.
>
>
>
> I get silence this way also, which makes me think that something is
>
> wrong with the ASBDs that I am using. When I dump the data that is
>
> coming in from the device it is correct. However the audio converter
>
> is outputting silence.
>
>
>
> The source for the projects are available at:
>
>
>
> http://mahajir.ambrosia.net/~dominic/main1.c
>
> http://mahajir.ambrosia.net/~dominic/main2.c
>
>
>
> Any help or insight is greatly appreciated.
>
>
>
> Dominic Feira / Ambrosia Software, Inc. / Code Monkey
>
> _______________________________________________
>
> 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.
>
>
--
mailto:email@hidden
tel: +1 408 974 4056
________________________________________________________________________
__
Culture Ship Names:
Ravished By The Sheer Implausibility Of That Last Statement [GSV]
I said, I've Got A Big Stick [OU]
Inappropiate Response [OU]
Far Over The Borders Of Insanity And Still Accelerating [Eccentric]
________________________________________________________________________
__
_______________________________________________
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.