• 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: Daisy And captureCurrentPtr.
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Daisy And captureCurrentPtr.


  • Subject: Re: Daisy And captureCurrentPtr.
  • From: Jens Bauer <email@hidden>
  • Date: Thu, 5 Feb 2004 19:04:27 +0100

Hi all,

When I look at the Daisy code that Craig sent, I can see that mNumberBuffers is only used to detect if there are any buffers.

I've wondered how I should relate to mNumberBuffers.

Should I write my code like this:

for(i = 0; i < input_data->mNumberBuffers; i++) // append all buffers one by one...
{
my_append_buffer(input_data->mBuffers[i]);
}

or like Daisy:

if(input_data->mNumberBuffers) // if we have one or more buffers...
{
my_append_buffer(input_data->mBuffers[0]); // ...then the first buffer is the one we're interested in.
}

?

On Thursday, Feb 5, 2004, at 16:31 Europe/Copenhagen, Craig Bakalian wrote:

if((inInputData != NULL) && (inInputData->mNumberBuffers > 0))
{
if (dInfo->captureInput)
{
if (dInfo->captureCurrentPtr +
inInputData->mBuffers[0].mDataByteSize < dInfo->captureStorage +
kSizeOfCaptureBuffer)
{
BlockMove(inInputData->mBuffers[0].mData, dInfo->captureCurrentPtr,
inInputData->mBuffers[0].mDataByteSize);
dInfo->captureCurrentPtr += inInputData->mBuffers[0].mDataByteSize;
dInfo->captureTotalBytesCaptured +=
inInputData->mBuffers[0].mDataByteSize;

}
else
{
dInfo->captureInput = false;
}
}
}


Love,
Jens
_______________________________________________
coreaudio-api mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/coreaudio-api
Do not post admin requests to the list. They will be ignored.

References: 
 >Daisy And captureCurrentPtr. (From: Craig Bakalian <email@hidden>)

  • Prev by Date: Re: HALOutputUnit (Pt 1)
  • Next by Date: Re: HALOutputUnit (Pt 1)
  • Previous by thread: Daisy And captureCurrentPtr.
  • Next by thread: What's the difference between a device and a external device ?
  • Index(es):
    • Date
    • Thread