Here's a bit of the code. Ssignal
-------------------------------------
double t = getTime();
double dt = 1.0/inSampleRate;
// mNumberBuffers is the same as the kNumChannels
UInt32 frame;
StereoSignal ssignal; //a StereoSignal is a struct with two fields (doubles), left and right
for (frame = 0; frame < inFrames; ++frame) {
  // generate inFrames 32-bit floats
  ssignal = (signalType ? getSineSignal(t) : getPieceSignal(t));
  ssignal.left = 1.0;
  double ssignalLeft = ssignal.left * plangency * 32768. + 0.5;
  SInt16 ssignalLeftInt = ssignalLeft;
NSLog(@"ssignal.left=%g, ssignalLeft=%g, ssignalLeftInt=%i", ssignal.left, ssignalLeft, ssignalLeftInt);
  ((SInt16*)((&(ioData->mBuffers[0]))->mData))[frame] =
    (SInt16)(ssignal.left * plangency * 32768. + 0.5);          
  ((SInt16*)((&(ioData->mBuffers[1]))->mData))[frame] =
    (SInt16)(ssignal.right * plangency * 32768. + 0.5);         
  t += dt;
} //end for
-------------------------------------
On 2008Mar26, at 21:19, Aaron Jones wrote:

Why don't you post the code that we can see what you're talking about and if its syntax

AJ Jones
Apple Inc.
Software Quality Engineer - Sync Services

Sent from my iPhone

On Mar 26, 2008, at 8:15 PM, Roland Silver <[EMAIL PROTECTED]> wrote:

I have a breakpoint set for the statement after an NSLog statement. When I run the program under debugging, the NLog statement is executed, but the program doesn't stop at the breakpoint.

How come?

Roland Silver
[EMAIL PROTECTED]

_______________________________________________

Cocoa-dev mailing list (Cocoa-dev@lists.apple.com)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/cocoa-dev/archive%40mail-archive.com

This email sent to [EMAIL PROTECTED]

Reply via email to