Skip to content

Commit

Permalink
Merge 47f6657 into ad138fc
Browse files Browse the repository at this point in the history
  • Loading branch information
rorywalsh committed Jul 20, 2018
2 parents ad138fc + 47f6657 commit 7a7e1f5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
12 changes: 6 additions & 6 deletions interfaces/cs_glue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -674,24 +674,24 @@ extern "C" {
#endif
}

/**

static CS_NOINLINE void InputValueCallback_wrapper(CSOUND *csound,
const char *chnName, MYFLT *value)
{
CsoundCallbackWrapper *p;
p = (CsoundCallbackWrapper*) csoundGetHostData(csound);
*value = (MYFLT) p->InputValueCallback(chnName);
}
*/
/**


static CS_NOINLINE void OutputValueCallback_wrapper(CSOUND *csound,
const char *chnName, MYFLT value)
{
CsoundCallbackWrapper *p;
p = (CsoundCallbackWrapper*) csoundGetHostData(csound);
p->OutputValueCallback(chnName, (double) value);
}
*/

static CS_NOINLINE int YieldCallback_wrapper(CSOUND *csound)
{
CsoundCallbackWrapper *p;
Expand All @@ -706,7 +706,7 @@ void CsoundCallbackWrapper::SetMessageCallback()
csoundSetMessageCallback(csound_, MessageCallback_wrapper);
}

/*void CsoundCallbackWrapper::SetInputValueCallback()
void CsoundCallbackWrapper::SetInputValueCallback()
{
csoundSetInputValueCallback(csound_, InputValueCallback_wrapper);
}
Expand All @@ -715,7 +715,7 @@ void CsoundCallbackWrapper::SetOutputValueCallback()
{
csoundSetOutputValueCallback(csound_, OutputValueCallback_wrapper);
}
*/

void CsoundCallbackWrapper::SetYieldCallback()
{
csoundSetYieldCallback(csound_, YieldCallback_wrapper);
Expand Down
4 changes: 2 additions & 2 deletions interfaces/cs_glue.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -490,8 +490,8 @@ class PUBLIC CsoundCallbackWrapper {
}

void SetMessageCallback();
// void SetInputValueCallback();
// void SetOutputValueCallback();
void SetInputValueCallback();
void SetOutputValueCallback();
void SetYieldCallback();
void SetMidiInputCallback(CsoundArgVList *argv);
void SetMidiOutputCallback(CsoundArgVList *argv);
Expand Down

0 comments on commit 7a7e1f5

Please sign in to comment.