Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Branch: hiddenAdd
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (43 sloc) 1.669 kB
/*
* Copyright 2010 Reality Jockey, Ltd.
* info@rjdj.me
* http://rjdj.me/
*
* This file is part of ZenGarden.
*
* ZenGarden is free software: you can redistribute it and/or modify
* it under the terms of the GNU Lesser General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* ZenGarden is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License
* along with ZenGarden. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef _DSP_RECEIVE_H_
#define _DSP_RECEIVE_H_
#include "DspObject.h"
/** [receive~ symbol], [r~ symbol] */
class DspReceive : public DspObject {
public:
static MessageObject *newObject(PdMessage *initMessage, PdGraph *graph);
DspReceive(PdMessage *initMessage, PdGraph *graph);
~DspReceive();
/** Set a pointer to send~'s input buffer. */
void setBuffer(float *buffer);
const char *getName();
static const char *getObjectLabel();
ObjectType getObjectType();
bool doesProcessDsp() { return false; }
void processMessage(int inletIndex, PdMessage *message);
private:
char *name;
float **sendBuffer; // double-pointer to the associated send~'s input buffer
float *originalLocalOutletBuffer; // pointer to the original local outlet buffer
};
#endif // _DSP_RECEIVE_H_
Jump to Line
Something went wrong with that request. Please try again.