Sha256: 4af6a062df5e6a3a9cfcf9706fb1da3004c0fadd3a7ba3272642790c044c1d6d

Contents?: true

Size: 957 Bytes

Versions: 16

Compression:

Stored size: 957 Bytes

Contents

#include "beeps/ruby/filter.h"


#include "beeps/ruby/processor.h"
#include "defs.h"


RUCY_DEFINE_WRAPPER_VALUE_FROM_TO(Beeps::PitchShift)

#define THIS  to<Beeps::PitchShift*>(self)

#define CHECK RUCY_CHECK_OBJ(Beeps::PitchShift, self)


static
RUCY_DEF_ALLOC(alloc, klass)
{
	return value(new Beeps::RubyProcessor<Beeps::PitchShift>, klass);
}
RUCY_END

static
RUCY_DEF1(set_shift, shift)
{
	CHECK;

	THIS->set_shift(to<float>(shift));
	return shift;
}
RUCY_END

static
RUCY_DEF0(get_shift)
{
	CHECK;

	return value(THIS->shift());
}
RUCY_END


static Class cPitchShift;

void
Init_beeps_pitch_shift ()
{
	Module mBeeps = define_module("Beeps");

	cPitchShift = mBeeps.define_class("PitchShift", Beeps::processor_class());
	cPitchShift.define_alloc_func(alloc);
	cPitchShift.define_method("shift=", set_shift);
	cPitchShift.define_method("shift",  get_shift);
}


namespace Beeps
{


	Class
	pitch_shift_class ()
	{
		return cPitchShift;
	}


}// Beeps

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
beeps-0.2.1 ext/beeps/pitch_shift.cpp
beeps-0.2 ext/beeps/pitch_shift.cpp
beeps-0.1.46 ext/beeps/pitch_shift.cpp
beeps-0.1.45 ext/beeps/pitch_shift.cpp
beeps-0.1.44 ext/beeps/pitch_shift.cpp
beeps-0.1.43 ext/beeps/pitch_shift.cpp
beeps-0.1.42 ext/beeps/pitch_shift.cpp
beeps-0.1.41 ext/beeps/pitch_shift.cpp
beeps-0.1.40 ext/beeps/pitch_shift.cpp
beeps-0.1.39 ext/beeps/pitch_shift.cpp
beeps-0.1.38 ext/beeps/pitch_shift.cpp
beeps-0.1.37 ext/beeps/pitch_shift.cpp
beeps-0.1.36 ext/beeps/pitch_shift.cpp
beeps-0.1.35 ext/beeps/pitch_shift.cpp
beeps-0.1.34 ext/beeps/pitch_shift.cpp
beeps-0.1.33 ext/beeps/pitch_shift.cpp