History

add buffer to ugens and accessor for external ugens

Jack Atherton committed 9 years ago

Commit 98ba93b1 parent 11748e48 files · +122 −204Browse files

Showing the changes to src/core/chuck.cpp (1 of 8 files). Show all

Unified · Split

src/core/chuck.cpp+15−0
@@ -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//-----------------------------------------------------------------------------
1024t_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 routed1037// desc: provide a callback where Chout print statements are routed

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t