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