Re: How to capture audio generated by a render callback, iOS
Re: How to capture audio generated by a render callback, iOS
- Subject: Re: How to capture audio generated by a render callback, iOS
- From: Tim Kemp <email@hidden>
- Date: Thu, 06 Dec 2012 07:41:05 -0500
On 6 Dec 2012, at 03:38, Joel Reymont wrote: Weren't your samples 16-bit wide?
They were, but if I change those 32's to SInt16's the whole thing breaks down. In the headers it looks like either would work:
typedef SInt16 AudioSampleType; typedef SInt32 AudioUnitSampleType;
So I changed them all to SInt16s and modified the ASBD:
_fileASBD.mSampleRate = 44100.00; _fileASBD.mFormatID = kAudioFormatLinearPCM; _fileASBD.mFormatFlags = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsBigEndian | kAudioFormatFlagIsPacked;; _fileASBD.mBytesPerPacket = 2 * 2; _fileASBD.mBytesPerFrame = 2 * 2; _fileASBD.mFramesPerPacket = 1; _fileASBD.mChannelsPerFrame = 2; _fileASBD.mBitsPerChannel = 16; No errors, but awful sound.
On Wed, Dec 5, 2012 at 9:01 PM, Tim Kemp <email@hidden> wrote:
SInt32 *intlvData = (SInt32 *) _tmpBuf.mData;
SInt32 *leftSrcData = (SInt32 *) ioData->mBuffers[0].mData;
SInt32 *rightSrcData = (SInt32 *) ioData->mBuffers[1].mData;
-------------------------------------------------------------------------- for hire: mac osx device driver ninja. kernel, usb and coreaudio drivers ---------------------+------------+---------------------------------------
http://wagerlabs.com | @wagerlabs | http://www.linkedin.com/in/joelreymont ---------------------+------------+---------------------------------------
|
_______________________________________________
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
References: | |
| >How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Gregory Wieber <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Aran Mulholland <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Joel Reymont <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Tim Kemp <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Paul Davis <email@hidden>) |
| >Re: How to capture audio generated by a render callback, iOS (From: Joel Reymont <email@hidden>) |