Showing the changes to src/core/chuck.cpp (1 of 8 files). Show all
Unified · Split
| @@ -1017,6 +1017,21 @@ t_CKBOOL ChucK::stopListeningForExternalEvent( const char * name, · 1016 unmodified lines | |||
| 1017 | 1017 | ||
| 1018 | 1018 | ||
| 1019 | 1019 | ||
| 1020 | //----------------------------------------------------------------------------- | ||
| 1021 | // name: getExternalUGenSamples() | ||
| 1022 | // desc: directly get ugen samples (call only from audio thread!!!) | ||
| 1023 | //----------------------------------------------------------------------------- | ||
| 1024 | t_CKBOOL ChucK::getExternalUGenSamples( const char * name, | ||
| 1025 | SAMPLE * buffer, int numSamples ) | ||
| 1026 | { | ||
| 1027 | if( !m_carrier->vm->running() ) return FALSE; | ||
| 1028 | return m_carrier->vm->get_external_ugen_samples( | ||
| 1029 | std::string( name ), buffer, numSamples ); | ||
| 1030 | } | ||
| 1031 | |||
| 1032 | |||
| 1033 | |||
| 1034 | |||
| 1020 | //----------------------------------------------------------------------------- | 1035 | //----------------------------------------------------------------------------- |
| 1021 | // name: setChoutCallback() | 1036 | // name: setChoutCallback() |
| 1022 | // desc: provide a callback where Chout print statements are routed | 1037 | // desc: provide a callback where Chout print statements are routed |