• 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: m4a blank file on recording
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: m4a blank file on recording


  • Subject: Re: m4a blank file on recording
  • From: Doug Wyatt <email@hidden>
  • Date: Wed, 12 Oct 2005 14:14:07 -0700

If you log your calls to AudioFileWritePackets -- are you writing a continuous/contiguous series of packet numbers?

Doug


On Oct 11, 2005, at 20:20, Olivier Destrebecq wrote:
I modified my code so that i get the same output, but still no luck:-(

Thanks
Olivier
http://otusweb.spymac.com/home/


On Oct 11, 2005, at 8:34 PM, Doug Wyatt wrote:

On Oct 11, 2005, at 4:00 PM, Olivier Destrebecq wrote:
MTCoreAudioStreamDescription *audioStreamDescription = [MTCoreAudioStreamDescription streamDescription];//[[[[[self recordingDevice] streamsForDirection: kMTCoreAudioDeviceRecordDirection] objectAtIndex: 0] streamDescriptionForSide: kMTCoreAudioStreamLogicalSide] copy];
[audioStreamDescription setFormatID: kAudioFormatMPEG4AAC];
[audioStreamDescription setChannelsPerFrame: 2];

If I run "afrecord -f m4af -d 'aac ' /tmp/foo.m4a", then "afinfo / tmp/foo.m4a" shows:


Data format: 2 ch, 44100 Hz, 'aac ' (0x00000002) 0 bits/ channel, 0 bytes/packet, 1024 frames/packet, 0 bytes/frame

How does this compare with the AudioStreamBasicDescription you are setting on the file? The (2) is mFormatFlags but I don't believe you need to be setting that.

Doug

-- Doug Wyatt Core Audio, Apple

_______________________________________________
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: 
 >m4a blank file on recording (From: Olivier Destrebecq <email@hidden>)
 >Re: m4a blank file on recording (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: Stereo Mixer metering
  • Next by Date: RE: Audio Units - newbie questions
  • Previous by thread: Re: m4a blank file on recording
  • Next by thread: DynamicAU Example
  • Index(es):
    • Date
    • Thread