fdBufferExperiments: sizeof() a size is silly

nix
Owen Green 7 years ago
parent 72e9e02044
commit 535b36b8a7

@ -78,7 +78,7 @@ bool ASyncBufferFun_RTStage(World* world, void* inUserData)
//Assign value to our NRT buffer pointer's value //Assign value to our NRT buffer pointer's value
*dstBuf = *data->newdst; *dstBuf = *data->newdst;
//Ping the server //Ping the server
world->mSndBufUpdates[data->dstbuf].writes ++ ; world->mSndBufUpdates[data->dstbuf].writes++;
return true; return true;
} }
@ -101,10 +101,6 @@ void ASyncBufferFun_Main(World *inWorld, void* inUserData, struct sc_msg_iter *m
{ {
BufferFunTimeCmdData* data = (BufferFunTimeCmdData*)RTAlloc(inWorld, sizeof(BufferFunTimeCmdData)); BufferFunTimeCmdData* data = (BufferFunTimeCmdData*)RTAlloc(inWorld, sizeof(BufferFunTimeCmdData));
// size_t srcFrameCount = srcBuf->frames;
// size_t srcChanCount = srcBuf->channels;
data->srcbuf = msg->geti(); data->srcbuf = msg->geti();
data->dstbuf = msg->geti(); data->dstbuf = msg->geti();
data->rank = msg->geti(); data->rank = msg->geti();
@ -129,8 +125,7 @@ void ASyncBufferFun_Main(World *inWorld, void* inUserData, struct sc_msg_iter *m
return; return;
} }
// how to pass a string argument: [WILL BE USEFUL FOR WINDOW FUNCTIONS?] // how to pass a string argument: [WILL BE USEFUL FOR WINDOW FUNCTIONS?]
// const char *name = msg->gets(); // get the string argument // const char *name = msg->gets(); // get the string argument
// if (name) { // if (name) {
@ -144,7 +139,7 @@ void ASyncBufferFun_Main(World *inWorld, void* inUserData, struct sc_msg_iter *m
if(completionMsgSize) if(completionMsgSize)
{ {
//allocate string //allocate string
completionMsgString = (char*)RTAlloc(inWorld,sizeof(completionMsgSize)); completionMsgString = (char*)RTAlloc(inWorld,completionMsgSize);
msg->getb(completionMsgString,completionMsgSize); msg->getb(completionMsgString,completionMsgSize);
} }

Loading…
Cancel
Save