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

AUAudioFilePlayer offline rendering


  • Subject: AUAudioFilePlayer offline rendering
  • From: patrick machielse <email@hidden>
  • Date: Mon, 9 Jul 2007 19:33:09 +0200

Hi,

I'm trying to use AUAudioFilePlayer and I'm running into problems.

The context: I'm processing audio files in an offline setting. I set up
a small AUGraph, consisting of an AUAudioFilePlayer, followed by a
variable number of custom units, ending in a generic output unit. I
process the autdio files by calling AudioUnitRender on the output in a
loop. The basics work; I get processed audio out.

The problem: AUAudioFilePlayer seems to revert to producing zeroed out
data at random (I've installed a render callback on the file player to
verify this). Once this happens, the output usually remains at zero level for
the duration of the file. I've not been able to determine a pattern in
when it will start producing zeroes, or at which offset in a file. I
only know that it seems to happen more often when I'm doing less
processing in the graph; if I'm just pulling in data as fast as I can
getting zeroed data from the file player is almost guaranteed.


What I've tried:

- setting the kAudioUnitProperty_OfflineRender property. It's not
supported by AUAudioFilePlayer it seems (but I believe this doesn't mean
that the file player can't be used at all in an offline context).

- setting the kAudioUnitProperty_MaximumFramesPerSlice to a safe value. This doesn't
help.


- AUAudioFilePlayer defines two properties for adjusting its internal
buffers, but these are not implemented.

Has anyone had any success with AUAudioFilePlayer in an offline
context? Am I overlooking something (warning signs maybe??).

patrick
_______________________________________________
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: AUAudioFilePlayer offline rendering
      • From: William Stewart <email@hidden>
  • Prev by Date: Re: True RMS value for audio samples
  • Next by Date: Re: True RMS value for audio samples
  • Previous by thread: Re: True RMS value for audio samples
  • Next by thread: Re: AUAudioFilePlayer offline rendering
  • Index(es):
    • Date
    • Thread