class Oboe_metal::Context

Public Class Methods

clear(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_clear(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  Context::clear();
  return Qnil;
fail:
  return Qnil;
}
copy(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_copy(int argc, VALUE *argv, VALUE self) {
  Metadata *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (Metadata *)Context::copy();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Metadata, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
createEvent(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_createEvent(int argc, VALUE *argv, VALUE self) {
  Event *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (Event *)Context::createEvent();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
fromString(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_fromString(int argc, VALUE *argv, VALUE self) {
  std::string arg1 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(argv[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::fromString", 1, argv[0] )); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  Context::fromString(arg1);
  return Qnil;
fail:
  return Qnil;
}
get(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_get(int argc, VALUE *argv, VALUE self) {
  oboe_metadata_t *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (oboe_metadata_t *)Context::get();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_oboe_metadata_t, 0 |  0 );
  return vresult;
fail:
  return Qnil;
}
init(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_init(int argc, VALUE *argv, VALUE self) {
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  Context::init();
  return Qnil;
fail:
  return Qnil;
}
isValid(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_isValid(int argc, VALUE *argv, VALUE self) {
  bool result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (bool)Context::isValid();
  vresult = SWIG_From_bool(static_cast< bool >(result));
  return vresult;
fail:
  return Qnil;
}
new(*args) click to toggle source
SWIGINTERN VALUE
_wrap_new_Context(int argc, VALUE *argv, VALUE self) {
  Context *result = 0 ;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (Context *)new Context();
  DATA_PTR(self) = result;
  return self;
fail:
  return Qnil;
}
sampleRequest(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_sampleRequest(int argc, VALUE *argv, VALUE self) {
  std::string arg1 ;
  std::string arg2 ;
  std::string arg3 ;
  int result;
  VALUE vresult = Qnil;
  
  if ((argc < 3) || (argc > 3)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 3)",argc); SWIG_fail;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(argv[0], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 1, argv[0] )); 
    }
    arg1 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(argv[1], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 2, argv[1] )); 
    }
    arg2 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  {
    std::string *ptr = (std::string *)0;
    int res = SWIG_AsPtr_std_string(argv[2], &ptr);
    if (!SWIG_IsOK(res) || !ptr) {
      SWIG_exception_fail(SWIG_ArgError((ptr ? res : SWIG_TypeError)), Ruby_Format_TypeError( "", "std::string","Context::sampleRequest", 3, argv[2] )); 
    }
    arg3 = *ptr;
    if (SWIG_IsNewObj(res)) delete ptr;
  }
  result = (int)Context::sampleRequest(arg1,arg2,arg3);
  vresult = SWIG_From_int(static_cast< int >(result));
  return vresult;
fail:
  return Qnil;
}
set(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_set(int argc, VALUE *argv, VALUE self) {
  oboe_metadata_t *arg1 = (oboe_metadata_t *) 0 ;
  void *argp1 = 0 ;
  int res1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  res1 = SWIG_ConvertPtr(argv[0], &argp1,SWIGTYPE_p_oboe_metadata_t, 0 |  0 );
  if (!SWIG_IsOK(res1)) {
    SWIG_exception_fail(SWIG_ArgError(res1), Ruby_Format_TypeError( "", "oboe_metadata_t *","Context::set", 1, argv[0] )); 
  }
  arg1 = reinterpret_cast< oboe_metadata_t * >(argp1);
  Context::set(arg1);
  return Qnil;
fail:
  return Qnil;
}
setDefaultSampleRate(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_setDefaultSampleRate(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Context::setDefaultSampleRate", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  Context::setDefaultSampleRate(arg1);
  return Qnil;
fail:
  return Qnil;
}
setTracingMode(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_setTracingMode(int argc, VALUE *argv, VALUE self) {
  int arg1 ;
  int val1 ;
  int ecode1 = 0 ;
  
  if ((argc < 1) || (argc > 1)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 1)",argc); SWIG_fail;
  }
  ecode1 = SWIG_AsVal_int(argv[0], &val1);
  if (!SWIG_IsOK(ecode1)) {
    SWIG_exception_fail(SWIG_ArgError(ecode1), Ruby_Format_TypeError( "", "int","Context::setTracingMode", 1, argv[0] ));
  } 
  arg1 = static_cast< int >(val1);
  Context::setTracingMode(arg1);
  return Qnil;
fail:
  return Qnil;
}
startTrace(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_startTrace(int argc, VALUE *argv, VALUE self) {
  Event *result = 0 ;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = (Event *)Context::startTrace();
  vresult = SWIG_NewPointerObj(SWIG_as_voidptr(result), SWIGTYPE_p_Event, SWIG_POINTER_OWN |  0 );
  return vresult;
fail:
  return Qnil;
}
toString(*args) click to toggle source
SWIGINTERN VALUE
_wrap_Context_toString(int argc, VALUE *argv, VALUE self) {
  std::string result;
  VALUE vresult = Qnil;
  
  if ((argc < 0) || (argc > 0)) {
    rb_raise(rb_eArgError, "wrong # of arguments(%d for 0)",argc); SWIG_fail;
  }
  result = Context::toString();
  vresult = SWIG_From_std_string(static_cast< std::string >(result));
  return vresult;
fail:
  return Qnil;
}