return true on successful initialization
| 99 | |
| 100 | // return true on successful initialization |
| 101 | bool PdNode::PdNodeInternal::initPure(const int numInChannels, const int numOutChannels, |
| 102 | const int sampleRate, const int ticksPerBuffer) |
| 103 | { |
| 104 | |
| 105 | if (!pd.init(numInChannels, numOutChannels, sampleRate)) |
| 106 | { |
| 107 | return false; |
| 108 | } |
| 109 | blockSizeAsLog = log2int(libpd_blocksize()); |
| 110 | |
| 111 | // subscribe to receive source names |
| 112 | pd.subscribe("toOF"); |
| 113 | pd.subscribe("env"); |
| 114 | |
| 115 | // add the data/pd folder to the search path |
| 116 | pd.addToSearchPath("pd"); |
| 117 | |
| 118 | // audio processing on |
| 119 | pd.computeAudio(true); |
| 120 | |
| 121 | return true; |
| 122 | } |
| 123 | |
| 124 | //-------------------------------------------------------------- |
| 125 | void PdNode::PdNodeInternal::print(const std::string & message) |