• 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
difficulty with offline rendering
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

difficulty with offline rendering


  • Subject: difficulty with offline rendering
  • From: "Kevin Dixon" <email@hidden>
  • Date: Mon, 7 Apr 2008 22:38:58 -0400 (EDT)
  • Importance: Normal

Hi,

After a bit of hiatus from this project, I'm back at work on it.

I have basically cloned all of the rendering code from the
auprocess/CAAUProcessor example in my software (CAAUProcessor turned out
to be a bit of a pain to use, so I just replicated the steps it does).

Regardless, I have tried my code with both the AUTimePitch and
AUVarispeed, and I get the same result.

I am using a simple instantiated audio unit, which I have set a render
callback on.

When I do

AudioUnitRenderActionFlags actionFlags =
kAudioOfflineUnitRenderAction_Render;

err = AudioUnitRender(mVarispeedUnit, &actionFlags, &curTime, 0,
kNumFramesPerSlice, theAudioData);

The following mSampleTime and inNumFrames are requested from the callback
0	52
52	412
464	100
Then, it says Render action Complete, and returns no frames. OK, fine.

Again I call render, and it requests the same offest/number of frames from
the callback, and then returns 4294965248 frames.

I notice this is the same number it returns for OutputSize, however the
thing that confuses me is this is merely a 10 second file, and it has only
requested the first 564 frames.

If I don't do anything with the returned "frames", which btw crashes
ExtAudioFileWrite, and just let it go, it will pull these 3 frames
infinitely.
I increase my mSampleTime in my main struct by 512 each render call.

I'm just out of ideas. If anyone could review my source, that might be
helpful. Please contact offlist if you are interested.

Thanks,

-Kevin
 _______________________________________________
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: ExtAudioFileCreateNew creates 32-bit float aiffs when 16-bit signed int is requested
  • Next by Date: Re: Meta Parameters
  • Previous by thread: ExtAudioFileCreateNew creates 32-bit float aiffs when 16-bit signed int is requested
  • Next by thread: User-land driver for channel mapping
  • Index(es):
    • Date
    • Thread