professional audio NDK
1.1.3
|
An interface for a JACK client. More...
#include <IJackClientInterface.h>
Public Member Functions | |
IJackClientInterface () | |
virtual | ~IJackClientInterface () |
virtual int | setUp (int argc, char *argv[])=0 |
virtual int | tearDown ()=0 |
virtual int | activate ()=0 |
virtual int | deactivate ()=0 |
virtual int | transport (TransportType type)=0 |
virtual int | sendMidi (char *midi)=0 |
An interface for a JACK client.
It is used for making Jack client on the APA client.
android::IJackClientInterface::IJackClientInterface | ( | ) | [inline] |
Constructor
virtual android::IJackClientInterface::~IJackClientInterface | ( | ) | [inline, virtual] |
Destructor
virtual int android::IJackClientInterface::activate | ( | ) | [pure virtual] |
Activate jack client
It will be called when user call SapaProcessor.activate().
virtual int android::IJackClientInterface::deactivate | ( | ) | [pure virtual] |
Deactivate jack client
It will be called when user call SapaProcessor.deactivate().
virtual int android::IJackClientInterface::sendMidi | ( | char * | midi | ) | [pure virtual] |
Receive a MIDI string.
It will be called when user call SapaProcessor.sendCommand() with parameter starting with "midi:".
For example, if sendCommand("midi:aabbcc"), the "aabbcc" will be sent as parameter midi.
midi | the midi string |
virtual int android::IJackClientInterface::setUp | ( | int | argc, |
char * | argv[] | ||
) | [pure virtual] |
After loading your Wave module, It will be called when user call SapaService.register() after calling IAPAInterface.init()
Initialize your client.
by default, argc == 1, argv[0] == the alias of package name( the last name seperated by dot )
If you send extra parameters by newClient(), It will be add next.
argc | argument count |
argv | arguments sent from the SapaProcessor constructor parameters, or plugin mainfest file |
virtual int android::IJackClientInterface::tearDown | ( | ) | [pure virtual] |
Exit point
It will be called when user call SapaService.unregister() or the process suddenly died.
Release resources.
virtual int android::IJackClientInterface::transport | ( | TransportType | type | ) | [pure virtual] |
Enable or disable transport feature of jack.
It will be called when user call SapaProcessor.setTransportEnabled().
type | TRANSPORT_OFF, TRANSPORT_ON |