RE: Recording Audio from an AUGraph
RE: Recording Audio from an AUGraph
- Subject: RE: Recording Audio from an AUGraph
- From: Darrell Gibson <email@hidden>
- Date: Fri, 26 Jun 2009 16:54:48 +0100
- Acceptlanguage: en-US, en-GB
- Thread-topic: Recording Audio from an AUGraph
If anyone else is trying to do this the CAAudioUnitOutputCapturer.h option is the easiest way to go as it takes care of a lot of the details. Just follow the example extract in the file, (but where it says CFURL it should be CFURLRef.) The only other thing is to give it a AudioStreamBasicDescription that corresponds to the file format. This took me a couple attempts, but as highlighted in this thread (http://lists.apple.com/archives/coreaudio-api/2009/Apr/msg00100.html) I also had the wrong Endian direction. This was solved setting the mFormatFlags with kAudioFormatFlagIsBigEndian like this: filefmt.mFormatFlags |= kAudioFormatFlagIsBigEndian;
Darrell.
________________________________________
From: coreaudio-api-bounces+gibsond=email@hidden [coreaudio-api-bounces+gibsond=email@hidden] On Behalf Of Darrell Gibson [email@hidden]
Sent: 26 June 2009 09:53
To: William Stewart
Cc: email@hidden
Subject: RE: Recording Audio from an AUGraph
Bill,
Thanks for the pointers. I'd never looked at the PlaySequence project as I assumed it was just MIDI (maybe a additional line in the main Core Audio Readme would point others in the right direction.)
The CAAudioUnitOutputCapturer.h seems to do exactly what I want so I'll give it a go.
Thanks again,
Darrell.
________________________________________
From: William Stewart [email@hidden]
Sent: 25 June 2009 01:16
To: Darrell Gibson
Cc: email@hidden
Subject: Re: Recording Audio from an AUGraph
PlaySequence in the SimpleSDK folder
CAAUCapturer.h (or something like this) in public utility - there was a recent thread on this list about how to use this
On Jun 22, 2009, at 9:42 AM, Darrell Gibson wrote:
I'm currently working on a project where I want to record audio from different points in my AUGraph. I've taken a look at the RecordAudioToFile and using this mechanism I can record audio from the input of the AUHAL no problem. However, I also want to be able to record the audio from different points on my AUGraph in a "bounce to disk" style. (For example, record the output from the AUHAL or say the audio after an effects AU.)
I have taken a look on the mailing list and found talk of an example I suspect will help me called DiskWriterAUGraph, but I can't locate it. Is this example still available? If not are there any other example that may help me?
I've also found some posts that talk about setting up a GenericOutput on the graph at the point I want to write the audio. I assume I'd then use the same procedure as in the RecordAudioToFile example to write the data to an output file. Is this the correct way of going about this?
Thanks for any help or pointers.
Darrell.
----------------------------------------------------------
Darrell Gibson
Bournemouth University,
School of Design, Engineering and Computing,
P418 Poole House,
Talbot Campus,
POOLE. (UK)
Tel: (01202) 965535
Fax: (01202) 965314
email: email@hidden<mailto:email@hidden>
BU - the UK's Number One New University
The Guardian University Guide 2009 & 2010
This email is intended only for the person to whom it is addressed and may contain confidential information. If you have received this email in error, please notify the sender and delete this email, which must not be copied, distributed or disclosed to any other person.
Any views or opinions presented are solely those of the author and do not necessarily represent those of Bournemouth University or its subsidiary companies. Nor can any contract be formed on behalf of the University or its subsidiary companies via email.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Coreaudio-api mailing list (email@hidden<mailto:email@hidden>)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden<mailto:email@hidden>
_______________________________________________
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
_______________________________________________
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