• 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: Tue, 11 Oct 2005 17:34:33 -0700

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


 _______________________________________________
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>)

  • Prev by Date: Re: Why a crash in Float32ToNative16_Altivec?
  • Next by Date: Re: Audio Units - newbie questions
  • Previous by thread: m4a blank file on recording
  • Next by thread: Re: m4a blank file on recording
  • Index(es):
    • Date
    • Thread