# This file was automatically generated by SWIG (http://www.swig.org).
# Version 1.3.31
#
# Don't modify this file, modify the SWIG interface instead.

import _audio_oss
import new
new_instancemethod = new.instancemethod
try:
    _swig_property = property
except NameError:
    pass # Python < 2.2 doesn't have 'property'.
def _swig_setattr_nondynamic(self,class_type,name,value,static=1):
    if (name == "thisown"): return self.this.own(value)
    if (name == "this"):
        if type(value).__name__ == 'PySwigObject':
            self.__dict__[name] = value
            return
    method = class_type.__swig_setmethods__.get(name,None)
    if method: return method(self,value)
    if (not static) or hasattr(self,name):
        self.__dict__[name] = value
    else:
        raise AttributeError("You cannot add attributes to %s" % self)

def _swig_setattr(self,class_type,name,value):
    return _swig_setattr_nondynamic(self,class_type,name,value,0)

def _swig_getattr(self,class_type,name):
    if (name == "thisown"): return self.this.own()
    method = class_type.__swig_getmethods__.get(name,None)
    if method: return method(self)
    raise AttributeError,name

def _swig_repr(self):
    try: strthis = "proxy of " + self.this.__repr__()
    except: strthis = ""
    return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,)

import types
try:
    _object = types.ObjectType
    _newclass = 1
except AttributeError:
    class _object : pass
    _newclass = 0
del types


def _swig_setattr_nondynamic_method(set):
    def set_attr(self,name,value):
        if (name == "thisown"): return self.this.own(value)
        if hasattr(self,name) or (name == "this"):
            set(self,name,value)
        else:
            raise AttributeError("You cannot add attributes to %s" % self)
    return set_attr


class audio_oss_sink_sptr(object):
    """Proxy of C++ audio_oss_sink_sptr class"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args): 
        """
        __init__(self) -> audio_oss_sink_sptr
        __init__(self,  p) -> audio_oss_sink_sptr
        """
        this = _audio_oss.new_audio_oss_sink_sptr(*args)
        try: self.this.append(this)
        except: self.this = this
    def __deref__(*args):
        """__deref__(self)"""
        return _audio_oss.audio_oss_sink_sptr___deref__(*args)

    __swig_destroy__ = _audio_oss.delete_audio_oss_sink_sptr
    __del__ = lambda self : None;
    def name(*args):
        """name(self) -> string"""
        return _audio_oss.audio_oss_sink_sptr_name(*args)

    def input_signature(*args):
        """input_signature(self) -> gr_io_signature_sptr"""
        return _audio_oss.audio_oss_sink_sptr_input_signature(*args)

    def output_signature(*args):
        """output_signature(self) -> gr_io_signature_sptr"""
        return _audio_oss.audio_oss_sink_sptr_output_signature(*args)

    def unique_id(*args):
        """unique_id(self) -> long"""
        return _audio_oss.audio_oss_sink_sptr_unique_id(*args)

    def history(*args):
        """history(self) -> unsigned int"""
        return _audio_oss.audio_oss_sink_sptr_history(*args)

    def output_multiple(*args):
        """output_multiple(self) -> int"""
        return _audio_oss.audio_oss_sink_sptr_output_multiple(*args)

    def relative_rate(*args):
        """relative_rate(self) -> double"""
        return _audio_oss.audio_oss_sink_sptr_relative_rate(*args)

    def check_topology(*args):
        """check_topology(self, int ninputs, int noutputs) -> bool"""
        return _audio_oss.audio_oss_sink_sptr_check_topology(*args)

    def start(*args):
        """start(self) -> bool"""
        return _audio_oss.audio_oss_sink_sptr_start(*args)

    def stop(*args):
        """stop(self) -> bool"""
        return _audio_oss.audio_oss_sink_sptr_stop(*args)

    def detail(*args):
        """detail(self) -> gr_block_detail_sptr"""
        return _audio_oss.audio_oss_sink_sptr_detail(*args)

    def set_detail(*args):
        """set_detail(self, gr_block_detail_sptr detail)"""
        return _audio_oss.audio_oss_sink_sptr_set_detail(*args)

audio_oss_sink_sptr_swigregister = _audio_oss.audio_oss_sink_sptr_swigregister
audio_oss_sink_sptr_swigregister(audio_oss_sink_sptr)


def audio_oss_sink_block(*args):
  """audio_oss_sink_block(audio_oss_sink_sptr r) -> gr_block_sptr"""
  return _audio_oss.audio_oss_sink_block(*args)
audio_oss_sink_sptr.block = lambda self: audio_oss_sink_block (self)
audio_oss_sink_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id ())

class audio_oss_source_sptr(object):
    """Proxy of C++ audio_oss_source_sptr class"""
    thisown = _swig_property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
    __repr__ = _swig_repr
    def __init__(self, *args): 
        """
        __init__(self) -> audio_oss_source_sptr
        __init__(self,  p) -> audio_oss_source_sptr
        """
        this = _audio_oss.new_audio_oss_source_sptr(*args)
        try: self.this.append(this)
        except: self.this = this
    def __deref__(*args):
        """__deref__(self)"""
        return _audio_oss.audio_oss_source_sptr___deref__(*args)

    __swig_destroy__ = _audio_oss.delete_audio_oss_source_sptr
    __del__ = lambda self : None;
    def name(*args):
        """name(self) -> string"""
        return _audio_oss.audio_oss_source_sptr_name(*args)

    def input_signature(*args):
        """input_signature(self) -> gr_io_signature_sptr"""
        return _audio_oss.audio_oss_source_sptr_input_signature(*args)

    def output_signature(*args):
        """output_signature(self) -> gr_io_signature_sptr"""
        return _audio_oss.audio_oss_source_sptr_output_signature(*args)

    def unique_id(*args):
        """unique_id(self) -> long"""
        return _audio_oss.audio_oss_source_sptr_unique_id(*args)

    def history(*args):
        """history(self) -> unsigned int"""
        return _audio_oss.audio_oss_source_sptr_history(*args)

    def output_multiple(*args):
        """output_multiple(self) -> int"""
        return _audio_oss.audio_oss_source_sptr_output_multiple(*args)

    def relative_rate(*args):
        """relative_rate(self) -> double"""
        return _audio_oss.audio_oss_source_sptr_relative_rate(*args)

    def check_topology(*args):
        """check_topology(self, int ninputs, int noutputs) -> bool"""
        return _audio_oss.audio_oss_source_sptr_check_topology(*args)

    def start(*args):
        """start(self) -> bool"""
        return _audio_oss.audio_oss_source_sptr_start(*args)

    def stop(*args):
        """stop(self) -> bool"""
        return _audio_oss.audio_oss_source_sptr_stop(*args)

    def detail(*args):
        """detail(self) -> gr_block_detail_sptr"""
        return _audio_oss.audio_oss_source_sptr_detail(*args)

    def set_detail(*args):
        """set_detail(self, gr_block_detail_sptr detail)"""
        return _audio_oss.audio_oss_source_sptr_set_detail(*args)

audio_oss_source_sptr_swigregister = _audio_oss.audio_oss_source_sptr_swigregister
audio_oss_source_sptr_swigregister(audio_oss_source_sptr)

def sink(*args):
  """
    sink(int sampling_rate, string dev="", bool ok_to_block=True) -> audio_oss_sink_sptr
    sink(int sampling_rate, string dev="") -> audio_oss_sink_sptr
    sink(int sampling_rate) -> audio_oss_sink_sptr
    """
  return _audio_oss.sink(*args)


def audio_oss_source_block(*args):
  """audio_oss_source_block(audio_oss_source_sptr r) -> gr_block_sptr"""
  return _audio_oss.audio_oss_source_block(*args)
audio_oss_source_sptr.block = lambda self: audio_oss_source_block (self)
audio_oss_source_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id ())



def source(*args):
  """
    source(int sampling_rate, string dev="", bool ok_to_block=True) -> audio_oss_source_sptr
    source(int sampling_rate, string dev="") -> audio_oss_source_sptr
    source(int sampling_rate) -> audio_oss_source_sptr
    """
  return _audio_oss.source(*args)

