• 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: More than 1 bus in a Node creating distorded audio?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More than 1 bus in a Node creating distorded audio?


  • Subject: Re: More than 1 bus in a Node creating distorded audio?
  • From: Kyle Sluder <email@hidden>
  • Date: Tue, 24 Aug 2010 10:24:14 -0400

On Aug 24, 2010, at 2:55 AM, Patrick Muringer <email@hidden> wrote:

>
> if(inBusNumber == 0) {
> if(input.isPlayingTrack1) {
>  [input fillBufferWithSampleForBus0:inNumberFrames :frameBuffer];

General wisdom is not to use ObjC in a render callback. In certain cases, method dispatch can lock, leading to missed realtime thread deadlines and corrupted audio.


>
> //loop through the buffer and fill the frames
> packetCount = (int)[self.sample1 getPacketCount];
> packetIndex = (int)[self.sample1 getIndex];

ObjC style note: the "get" prefix is reserved for returning values by reference. Regular accessors do not begin with "get." Using "get" breaks KVC. See -[NSString getCharacters:] for an appropriate use of "get."


>
> So I guess I'm filling the buffer for each bus.

Guessing isn't helpful, and since we don't have the source to whatever class you're using to get your sample data, that's all we can do too. Have you stepped through your code in the debugger and proven that your buffers are indeed being filled with the appropriate sample data?

--Kyle Sluder _______________________________________________
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: More than 1 bus in a Node creating distorded audio?
      • From: Gregory Wieber <email@hidden>
References: 
 >Re: More than 1 bus in a Node creating distorded audio? (From: Patrick Muringer <email@hidden>)

  • Prev by Date: Re: kAudioDevicePropertyDeviceIsAlive property
  • Next by Date: kExtAudioFileProperty_CodecManufacturer and client formats
  • Previous by thread: Re: More than 1 bus in a Node creating distorded audio?
  • Next by thread: Re: More than 1 bus in a Node creating distorded audio?
  • Index(es):
    • Date
    • Thread