Re: More than 1 bus in a Node creating distorded audio?
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