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: Noob Questions




On 8 Jan '08, at 10:51 AM, Matt Mashyna wrote:

So, what I *think* I want to do is use Core Audio to get input from an instrument, use pitch detection to figure out if the note is close enough to the note that should be played and tell the user that it was correct or incorrect.
...
I don't want to output audio, I want to get an audio stream, analyze it and give feedback to the user about it. It doesn't seem to really fit in as an Audio Unit but maybe I just don't get it.

The pipeline doesn't have to output audio; it can write the samples to a file, or the network, or just analyze them and throw them away, as you want to do.


Probably the easiest thing to get started with would be the new AudioQueue API in Leopard (10.5.) It'll let you read audio samples from a sound input pretty easily -- you register a callback that takes a buffer of samples as a parameter, and CoreAudio will call it periodically. Look at:
/Developer/Examples/CoreAudio/SimpleSDK/AudioQueueTools/aqrecord.c


--Jens
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/coreaudio-api/email@hidden

This email sent to email@hidden
References: 
 >Noob Questions (From: Matt Mashyna <email@hidden>)



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.