예제 #1
0
std::shared_ptr<Buffer> createBuffer(std::shared_ptr<Simulation>simulation) {
	return std::shared_ptr<Buffer>(new Buffer(simulation), ObjectDeleter(simulation));
}
예제 #2
0
 Value::Value(jni::JNIEnv& env, jni::jobject* _value) : jenv(env), value(_value, ObjectDeleter(env)) {}
std::shared_ptr<Node> createBufferTimelineNode(std::shared_ptr<Simulation> simulation, int channels) {
	std::shared_ptr<BufferTimelineNode> retval = std::shared_ptr<BufferTimelineNode>(new BufferTimelineNode(simulation, channels), ObjectDeleter(simulation));
	simulation->associateNode(retval);
	return retval;
}
예제 #4
0
std::shared_ptr<EnvironmentNode> createEnvironmentNode(std::shared_ptr<Simulation> simulation, std::shared_ptr<HrtfData> hrtf) {
	auto retval = std::shared_ptr<EnvironmentNode>(new EnvironmentNode(simulation, hrtf), ObjectDeleter(simulation));
	simulation->associateNode(retval);
	return retval;
}
예제 #5
0
std::shared_ptr<Node>createHardLimiterNode(std::shared_ptr<Simulation> simulation, unsigned int numChannels) {
	auto retval = std::shared_ptr<HardLimiterNode>(new HardLimiterNode(simulation, numChannels), ObjectDeleter(simulation));
	simulation->associateNode(retval);
	return retval;
}