Jamoma API  0.6.0.a19
Max/source/j.receive/j.receive.cpp File Reference

j.receive / j.receive~ : Receive messages and audio through remote communication More...

+ Include dependency graph for Max/source/j.receive/j.receive.cpp:

Go to the source code of this file.

Functions

void WrapTTReceiverClass (WrappedClassPtr c)
 Wrap the j.receive class as a Max object. More...
 
void WrappedReceiverClass_new (TTPtr self, long argc, t_atom *argv)
 Wrapper for the j.receive constructor class, called when an instance is created. More...
 
void WrappedReceiverClass_free (TTPtr self)
 Wrapper for the j.receive deconstructor class, called when an instance is destroyed. More...
 
void receive_assist (TTPtr self, void *b, long msg, long arg, char *dst)
 Assistance Method. More...
 
void receive_subscribe (TTPtr self)
 Associate j.receive(~) with NodeLib. More...
 
void receive_bang (TTPtr self)
 bang handler for j.receive More...
 
void receive_address (TTPtr self, t_symbol *address)
 address message handler for j.receive. More...
 
int C74_EXPORT main (void)
 Set up this class as a Max external the first time an object of this kind is instantiated. More...
 

Detailed Description

j.receive / j.receive~ : Receive messages and audio through remote communication

Authors
Théo de la Hogue, Trond Lossius

Definition in file Max/source/j.receive/j.receive.cpp.

Function Documentation

int C74_EXPORT main ( void  )

Set up this class as a Max external the first time an object of this kind is instantiated.

Returns
Error message if the object fails to load.

Set up this class as a Max external the first time an object of this kind is instantiated.

Definition at line 95 of file Max/source/j.receive/j.receive.cpp.

References WrappedReceiverClass_free(), WrappedReceiverClass_new(), wrapTTModularClassAsMaxClass(), and WrapTTReceiverClass().

+ Here is the call graph for this function:

void receive_address ( TTPtr  self,
t_symbol *  address 
)

address message handler for j.receive.

To change the address to bind.

Parameters
selfPointer to this object
addressThe address to bind
See also
receive_subscribe

Definition at line 377 of file Max/source/j.receive/j.receive.cpp.

References WrappedModularInstance::address, TTAddress::appendAttribute(), TTSymbol::c_str(), TTAddress::getAttribute(), TTAddress::getName(), TTAddress::getType(), WrappedModularInstance::internals, jamoma_parse_dieze(), kAddressAbsolute, kAddressRelative, TTHash::lookup(), receive_subscribe(), TTHash::remove(), TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by WrapTTReceiverClass().

+ Here is the call graph for this function:

void receive_assist ( TTPtr  self,
void *  b,
long  msg,
long  arg,
char *  dst 
)

Assistance Method.

Parameters
selfPointer to this object.
bPointer to (exactly what?)
msgThe message passed to the object.
arg
dstPointer to the destination that assistance strings are passed to for display.

Definition at line 341 of file Max/source/j.receive/j.receive.cpp.

Referenced by WrapTTReceiverClass().

void receive_bang ( TTPtr  self)

bang handler for j.receive

Parameters
selfPointer to this object
See also
receive_int, receive_float, receive_list, WrappedOutputClass_anything

Definition at line 366 of file Max/source/j.receive/j.receive.cpp.

References TTObject::send(), and WrappedModularInstance::wrappedObject.

Referenced by WrapTTReceiverClass().

+ Here is the call graph for this function:

void receive_subscribe ( TTPtr  self)

Associate j.receive(~) with NodeLib.

This is a prerequisit for communication with other Jamoma object in the module and beyond.

Definition at line 209 of file Max/source/j.receive/j.receive.cpp.

References WrappedModularInstance::address, TTAddress::appendAddress(), TTSymbol::c_str(), TTObject::get(), WrappedModularInstance::index, jamoma_patcher_get_info(), jamoma_subscriber_create(), WrappedModularInstance::patcherClass, WrappedModularInstance::patcherContext, WrappedModularInstance::patcherName, WrappedModularInstance::patcherPtr, TTObject::set(), WrappedModularInstance::subscriberObject, and WrappedModularInstance::wrappedObject.

Referenced by receive_address(), and WrappedReceiverClass_new().

+ Here is the call graph for this function:

void WrappedReceiverClass_free ( TTPtr  self)

Wrapper for the j.receive deconstructor class, called when an instance is destroyed.

Parameters
selfPointer to this object.
See also
WrappedReceiverClass_new

Definition at line 193 of file Max/source/j.receive/j.receive.cpp.

References TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrappedReceiverClass_new ( TTPtr  self,
long  argc,
t_atom *  argv 
)

Wrapper for the j.receive constructor class, called when an instance is created.

Parameters
selfPointer to this object.
argcThe number of arguments passed to the object.
argvPointer to an array of atoms passed to the object.
See also
WrappedReceiverClass_free, receive_subscribe

Definition at line 133 of file Max/source/j.receive/j.receive.cpp.

References WrappedModularInstance::address, TTAddress::appendAttribute(), TTSymbol::c_str(), TTAddress::getAttribute(), TTAddress::getName(), TTAddress::getType(), WrappedModularInstance::index, jamoma_parse_dieze(), jamoma_receiver_create(), jamoma_receiver_create_audio(), kAddressAbsolute, WrappedModularInstance::obj, WrappedModularInstance::outlets, receive_subscribe(), TTObject::set(), and WrappedModularInstance::wrappedObject.

Referenced by main().

+ Here is the call graph for this function:

void WrapTTReceiverClass ( WrappedClassPtr  c)

Wrap the j.receive class as a Max object.

Parameters
cThe class to be wrapped
See also
WrappedReceiverClass_new, WrappedReceiverClass_free

Definition at line 111 of file Max/source/j.receive/j.receive.cpp.

References receive_address(), receive_assist(), and receive_bang().

Referenced by main().

+ Here is the call graph for this function: