• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
record and play program
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Prev by Date: 3D Mixer Bug or User Error?
  • Next by Date: Re: Side chains in Logic
  • Previous by thread: Re: 3D Mixer Bug or User Error?
  • Next by thread: Unable to figure out Input Callback in cpp
  • Index(es):
    • Date
    • Thread