Getting node class data
Getting node class data
- Subject: Getting node class data
- From: Robert Grant <email@hidden>
- Date: Tue, 15 Oct 2002 10:54:45 -0400
Sorry for all these questions....
I'm trying to save the class data for a node, here's my code:
- (void)encodeWithCoder:(NSCoder*)coder
{
void* bytes;
UInt32 size;
OSStatus status = AUGraphGetNodeInfo(m_graph, m_node, NULL, &size,
NULL, NULL);
NSLog(@"GetNodeInfo status: %d", status);
bytes = malloc(size);
status = AUGraphGetNodeInfo(m_graph, m_node, NULL, &size, &bytes,
NULL);
NSLog(@"GetNodeInfo status: %d", status);
[coder encodeBytes: bytes length: size];
free(bytes);
}
First I'm getting the size of the class data and then malloc'ing a
buffer
of that size.
The problem is that size is coming back 0. This shouldn't be the case
should it?
This is happening with any node I try it on.
Thanks,
Robert.
_______________________________________________
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.