I am trying to put into my singelton a c array, in order to later build a ring buffer.
It gives me error when trying to set the property .
@interface globals : NSObject
{
SInt16 bufBuf[2000];
..
}
@property (nonatomic, assign, readwrite) SInt16 bufBuf;
then @synthesize it on the .m file
i have to say that i am going to write an audio callback buffer into bufbuf very fast.(its ok?)
whats wrong and how can i fix that ?
thanks a lot.
You don’t say what the error is, but it could well be that the type you use in your property is not the same as you use in your member variable.
Try something more like this:
You’ll need to
mallocthe buffer in yourinitmethod.