• 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
Very short junk audio signal on 10.5 x86
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Very short junk audio signal on 10.5 x86


  • Subject: Very short junk audio signal on 10.5 x86
  • From: "Andreas Falkenhahn" <email@hidden>
  • Date: Sat, 29 Aug 2009 21:57:18 +0200

Hi,

I've noticed that on an Intel iMac with OS 10.5 my app suddenly has a very
brief junk audio signal whenever a sound has finished playing. Under Tiger
on my PPC Mac mini, this doesn't happen though.

Here's my setup:

Whenever a sound is played, I'm starting a new channel on my Audio Mixer
Unit using kAudioUnitProperty_SetRenderCallback. In the render callback,
I'm calling AudioConverterFillComplexBuffer(). When there's no more data
left to play, I let my ACComplexInputProc() return NULL for everything and
set a flag that indicates that this channel has finished playing.

This flag is then catched by my notification callback that I installed using
AudioUnitAddRenderNotify(). On every kAudioUnitRenderAction_PostRender
event, the notification proc will check if the "channel_finished" flag is set
and if it is set, it will stop the render callback on the respective channel by
calling kAudioUnitProperty_SetRenderCallback with NULL.

And this is the exact point where the very brief junk noise occurs. When
my notification proc stops the render callback on the respective channel,
I get a brief junk audio signal. It's just a fragment of a second in time, but
clearly audible and annoying. So I'm wondering what can I do about this?
As I said, it doesn't happen under Tiger on PPC, but under Leopard on x86
it's there and really annoying.

What can I do to fix this?

Tks

Andreas
--
"Remember: It's nice to be important but it's more important to be nice!"


 _______________________________________________
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: Very short junk audio signal on 10.5 x86
      • From: "Andreas Falkenhahn" <email@hidden>
  • Prev by Date: ExtAudioFileRead Crash
  • Next by Date: Re: Snow Leopard and AudioUnits?
  • Previous by thread: Re: ExtAudioFileRead Crash
  • Next by thread: Re: Very short junk audio signal on 10.5 x86
  • Index(es):
    • Date
    • Thread