• 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
Re: Recording in .wav format doesn't work properly
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Recording in .wav format doesn't work properly


  • Subject: Re: Recording in .wav format doesn't work properly
  • From: "Zhiye (Sterling) Li" <email@hidden>
  • Date: Thu, 29 Oct 2009 11:43:44 -0500

I use ExtAudioFileWriteAsync() to write data, and it returns no error during recording. The data format flag I am using is

audioFormat.mFormatID                   = kAudioFormatLinearPCM;
audioFormat.mFormatFlags              = kAudioFormatFlagIsSignedInteger | kAudioFormatFlagIsPacked;

The recording part of the code is like:

 [self setUpAudioFormat];
    status = AudioFileCreateWithURL((CFURLRef)file, kAudioFileWAVEType, &audioFormat, kAudioFileFlags_EraseFile, &audioFileID);
   
    status = ExtAudioFileWrapAudioFileID(audioFileID, YES, &audiofile);



On Thu, Oct 29, 2009 at 2:32 AM, Seth Delackner <email@hidden> wrote:
How are you writing your data to the file?  AudioFileWritePackets
works fine for me.  Not sure about the data format flags you are
using.  You are trying to write mono it seems, but I've only tried
writing stereo output.  Shouldn't be an issue I would think...

 _______________________________________________
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

  • Follow-Ups:
    • Re: Recording in .wav format doesn't work properly
      • From: "Zhiye (Sterling) Li" <email@hidden>
References: 
 >Recording in .wav format doesn't work properly (From: "Zhiye (Sterling) Li" <email@hidden>)
 >Re: Recording in .wav format doesn't work properly (From: Seth Delackner <email@hidden>)

  • Prev by Date: Re: One Cocoa view for multiple AUs?
  • Next by Date: Re: Recording in .wav format doesn't work properly
  • Previous by thread: Re: Recording in .wav format doesn't work properly
  • Next by thread: Re: Recording in .wav format doesn't work properly
  • Index(es):
    • Date
    • Thread