• 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: Empty file created with ExtAudioFileWrite
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Empty file created with ExtAudioFileWrite


  • Subject: Re: Empty file created with ExtAudioFileWrite
  • From: Lee Falin <email@hidden>
  • Date: Mon, 17 Jul 2006 14:46:06 -0400

Ok, now I have tried the following:

	unsigned int numberOfFrames = sizeof(outputData) / 4;
	OSErr test2 = ExtAudioFileWrite(outRef, numberOfFrames,outputData);

	Gives same empty file

I also tried:

OSErr test2 = ExtAudioFileWrite(outRef,MTAudioBufferListFrameCount (outputData) ,outputData);

Which gives a file with data, but always the same garbled spike.


I have also tried setting the client input format via:

	AudioStreamBasicDescription indesc;
	indesc.mSampleRate = 44100;
	indesc.mFormatID = kAudioFormatLinearPCM;

ExtAudioFileSetProperty (outRef,kExtAudioFileProperty_ClientDataFormat,sizeof (AudioStreamBasicDescription),&indesc);

Which doesn't seem to have an effect under either scenario. Is my problem that I am recording the data with MTCoreAudio and then trying to record it with the regular Core Audio API?

On Jul 17, 2006, at 2:00 PM, Doug Wyatt wrote:

On Jul 15, 2006, at 13:54 , Lee Falin wrote:
Can someone tell me what I am missing? I realize that I'm probably doing this wrong:

Yes.

OSErr test2 = ExtAudioFileWrite(outRef,sizeof (outputData),outputData);

But I wasn't sure whre to get the number of frames from.

You know the number of bytes, and since it's presumably PCM, you know the number of bytes per frame...


--
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
  • Follow-Ups:
    • Re: Empty file created with ExtAudioFileWrite
      • From: William Stewart <email@hidden>
References: 
 >Empty file created with ExtAudioFileWrite (From: Lee Falin <email@hidden>)
 >Re: Empty file created with ExtAudioFileWrite (From: Doug Wyatt <email@hidden>)

  • Prev by Date: Re: Problems with AUPitch and sample rate (perhaps S/R change problems in general)
  • Next by Date: Number of frames in Render()
  • Previous by thread: Re: Empty file created with ExtAudioFileWrite
  • Next by thread: Re: Empty file created with ExtAudioFileWrite
  • Index(es):
    • Date
    • Thread