record and play program
record and play program
- Subject: record and play program
- From: sheen mac <email@hidden>
- Date: Thu, 21 Dec 2006 08:20:37 -0800 (PST)
Hi All,
I am doing simple record and play program.I capture the data
using AudioUint and Converted it into standard format.And stored
the values and float array and Played it.I got good sound with
ISight .But In the case microphoe,a lot of disturbance in the sound.
How can I correct this.
Thanks in Advance,
Sheen
The audioStreamDescription is
fOutputFormat=streamDescriptionforDevice(fInputDeviceID);
fOutputFormat.mChannelsPerFrame = 1;
fOutputFormat.mFormatID = kAudioFormatLinearPCM;
fOutputFormat.mFormatFlags = kAudioFormatFlagIsFloat | kAudioFormatFlagIsPacked | kAudioFormatFlagIsNonInterleaved;
if (fOutputFormat.mFormatID == kAudioFormatLinearPCM && fAudioChannels == 1)
fOutputFormat.mFormatFlags &= ~kLinearPCMFormatFlagIsNonInterleaved;
#if
__BIG_ENDIAN__
fOutputFormat.mFormatFlags |= kAudioFormatFlagIsBigEndian;
#endif
fOutputFormat.mFormatFlags = kAudioFormatFlagsNativeFloatPacked;
fOutputFormat.mBitsPerChannel = 32;
fOutputFormat.mBytesPerFrame = 4;
fOutputFormat.mFramesPerPacket = 1;
fOutputFormat.mBytesPerPacket = 4;
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
_______________________________________________
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