Re: Basic sample code for FFT audio frequency spectrum? Sarcasm Maybe? Thank You...
Re: Basic sample code for FFT audio frequency spectrum? Sarcasm Maybe? Thank You...
- Subject: Re: Basic sample code for FFT audio frequency spectrum? Sarcasm Maybe? Thank You...
- From: Christian Luther <email@hidden>
- Date: Sat, 7 Jul 2007 09:44:24 +0200
Hi!
I only did AU plug-ins so far, so the following may not be 100%
right. First, Audio Units are not only used as plug-ins. In Core-
Audio-Style you would set up a graph of Audio Units that do the tasks
you wish to do. In your case that would be an AudioFilePlayer
connected to your own AU doing FFT stuff, which is then again
connected to an output unit for playback. See the PlayFile example
in /Developer/Examples/CoreAudio/SimpleSDK on how to do this.
I can't think of a Cocoa way to load Audio Data easily. There is just
NSSound for simple playback but you cannot get raw samples from it.
Another way would be to go completely on yourself, parsing a wav file
format and extracting the audio data. But then your app can only
handle wav format and you have to do the same stuff again and again
for aiff, mp3 and so on. AUFilePlayer is already there and does it all.
Greets,
Christian
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden