# This file was automatically generated by SWIG (https://www.swig.org).
# Version 4.2.1
#
# Do not make changes to this file unless you know what you are doing - modify
# the SWIG interface file instead.

from sys import version_info as _swig_python_version_info
# Import the low-level C/C++ module
if __package__ or "." in __name__:
    from . import _audio_swig
else:
    import _audio_swig

try:
    import builtins as __builtin__
except ImportError:
    import __builtin__

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


def _swig_setattr_nondynamic_instance_variable(set):
    def set_instance_attr(self, name, value):
        if name == "this":
            set(self, name, value)
        elif name == "thisown":
            self.this.own(value)
        elif hasattr(self, name) and isinstance(getattr(type(self), name), property):
            set(self, name, value)
        else:
            raise AttributeError("You cannot add instance attributes to %s" % self)
    return set_instance_attr


def _swig_setattr_nondynamic_class_variable(set):
    def set_class_attr(cls, name, value):
        if hasattr(cls, name) and not isinstance(getattr(cls, name), property):
            set(cls, name, value)
        else:
            raise AttributeError("You cannot add class attributes to %s" % cls)
    return set_class_attr


def _swig_add_metaclass(metaclass):
    """Class decorator for adding a metaclass to a SWIG wrapped class - a slimmed down version of six.add_metaclass"""
    def wrapper(cls):
        return metaclass(cls.__name__, cls.__bases__, cls.__dict__.copy())
    return wrapper


class _SwigNonDynamicMeta(type):
    """Meta class to enforce nondynamic attributes (no new attributes) for a class"""
    __setattr__ = _swig_setattr_nondynamic_class_variable(type.__setattr__)



def high_res_timer_now():
    r"""high_res_timer_now() -> gr::high_res_timer_type"""
    return _audio_swig.high_res_timer_now()

def high_res_timer_now_perfmon():
    r"""high_res_timer_now_perfmon() -> gr::high_res_timer_type"""
    return _audio_swig.high_res_timer_now_perfmon()

def high_res_timer_tps():
    r"""high_res_timer_tps() -> gr::high_res_timer_type"""
    return _audio_swig.high_res_timer_tps()

def high_res_timer_epoch():
    r"""high_res_timer_epoch() -> gr::high_res_timer_type"""
    return _audio_swig.high_res_timer_epoch()
class source(object):
    r"""Proxy of C++ gr::audio::source class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def make(*args, **kwargs):
        r"""make(int sampling_rate, std::string const device_name="", bool ok_to_block=True) -> source_sptr"""
        return _audio_swig.source_make(*args, **kwargs)
    __swig_destroy__ = _audio_swig.delete_source

# Register source in _audio_swig:
_audio_swig.source_swigregister(source)
class sink(object):
    r"""Proxy of C++ gr::audio::sink class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")

    def __init__(self, *args, **kwargs):
        raise AttributeError("No constructor defined")
    __repr__ = _swig_repr

    @staticmethod
    def make(*args, **kwargs):
        r"""make(int sampling_rate, std::string const device_name="", bool ok_to_block=True) -> sink_sptr"""
        return _audio_swig.sink_make(*args, **kwargs)
    __swig_destroy__ = _audio_swig.delete_sink

# Register sink in _audio_swig:
_audio_swig.sink_swigregister(sink)
class source_sptr(object):
    r"""Proxy of C++ boost::shared_ptr< gr::audio::source > class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        r"""
        __init__(source_sptr self) -> source_sptr
        __init__(source_sptr self, source p) -> source_sptr
        """
        _audio_swig.source_sptr_swiginit(self, _audio_swig.new_source_sptr(*args))

    def __deref__(self):
        r"""__deref__(source_sptr self) -> source"""
        return _audio_swig.source_sptr___deref__(self)
    __swig_destroy__ = _audio_swig.delete_source_sptr

    def make(self, *args, **kwargs):
        r"""make(source_sptr self, int sampling_rate, std::string const device_name="", bool ok_to_block=True) -> source_sptr"""
        return _audio_swig.source_sptr_make(self, *args, **kwargs)

    def history(self):
        r"""history(source_sptr self) -> unsigned int"""
        return _audio_swig.source_sptr_history(self)

    def declare_sample_delay(self, *args):
        r"""
        declare_sample_delay(source_sptr self, int which, int delay)
        declare_sample_delay(source_sptr self, unsigned int delay)
        """
        return _audio_swig.source_sptr_declare_sample_delay(self, *args)

    def sample_delay(self, which):
        r"""sample_delay(source_sptr self, int which) -> unsigned int"""
        return _audio_swig.source_sptr_sample_delay(self, which)

    def set_output_multiple(self, multiple):
        r"""set_output_multiple(source_sptr self, int multiple)"""
        return _audio_swig.source_sptr_set_output_multiple(self, multiple)

    def output_multiple(self):
        r"""output_multiple(source_sptr self) -> int"""
        return _audio_swig.source_sptr_output_multiple(self)

    def relative_rate(self):
        r"""relative_rate(source_sptr self) -> double"""
        return _audio_swig.source_sptr_relative_rate(self)

    def relative_rate_i(self):
        r"""relative_rate_i(source_sptr self) -> uint64_t"""
        return _audio_swig.source_sptr_relative_rate_i(self)

    def relative_rate_d(self):
        r"""relative_rate_d(source_sptr self) -> uint64_t"""
        return _audio_swig.source_sptr_relative_rate_d(self)

    def start(self):
        r"""start(source_sptr self) -> bool"""
        return _audio_swig.source_sptr_start(self)

    def stop(self):
        r"""stop(source_sptr self) -> bool"""
        return _audio_swig.source_sptr_stop(self)

    def nitems_read(self, which_input):
        r"""nitems_read(source_sptr self, unsigned int which_input) -> uint64_t"""
        return _audio_swig.source_sptr_nitems_read(self, which_input)

    def nitems_written(self, which_output):
        r"""nitems_written(source_sptr self, unsigned int which_output) -> uint64_t"""
        return _audio_swig.source_sptr_nitems_written(self, which_output)

    def set_log_level(self, level):
        r"""set_log_level(source_sptr self, std::string level)"""
        return _audio_swig.source_sptr_set_log_level(self, level)

    def log_level(self):
        r"""log_level(source_sptr self) -> std::string"""
        return _audio_swig.source_sptr_log_level(self)

    def max_noutput_items(self):
        r"""max_noutput_items(source_sptr self) -> int"""
        return _audio_swig.source_sptr_max_noutput_items(self)

    def set_max_noutput_items(self, m):
        r"""set_max_noutput_items(source_sptr self, int m)"""
        return _audio_swig.source_sptr_set_max_noutput_items(self, m)

    def unset_max_noutput_items(self):
        r"""unset_max_noutput_items(source_sptr self)"""
        return _audio_swig.source_sptr_unset_max_noutput_items(self)

    def is_set_max_noutput_items(self):
        r"""is_set_max_noutput_items(source_sptr self) -> bool"""
        return _audio_swig.source_sptr_is_set_max_noutput_items(self)

    def set_min_noutput_items(self, m):
        r"""set_min_noutput_items(source_sptr self, int m)"""
        return _audio_swig.source_sptr_set_min_noutput_items(self, m)

    def min_noutput_items(self):
        r"""min_noutput_items(source_sptr self) -> int"""
        return _audio_swig.source_sptr_min_noutput_items(self)

    def max_output_buffer(self, i):
        r"""max_output_buffer(source_sptr self, int i) -> long"""
        return _audio_swig.source_sptr_max_output_buffer(self, i)

    def set_max_output_buffer(self, *args):
        r"""
        set_max_output_buffer(source_sptr self, long max_output_buffer)
        set_max_output_buffer(source_sptr self, int port, long max_output_buffer)
        """
        return _audio_swig.source_sptr_set_max_output_buffer(self, *args)

    def min_output_buffer(self, i):
        r"""min_output_buffer(source_sptr self, int i) -> long"""
        return _audio_swig.source_sptr_min_output_buffer(self, i)

    def set_min_output_buffer(self, *args):
        r"""
        set_min_output_buffer(source_sptr self, long min_output_buffer)
        set_min_output_buffer(source_sptr self, int port, long min_output_buffer)
        """
        return _audio_swig.source_sptr_set_min_output_buffer(self, *args)

    def pc_noutput_items(self):
        r"""pc_noutput_items(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_noutput_items(self)

    def pc_noutput_items_avg(self):
        r"""pc_noutput_items_avg(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_noutput_items_avg(self)

    def pc_noutput_items_var(self):
        r"""pc_noutput_items_var(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_noutput_items_var(self)

    def pc_nproduced(self):
        r"""pc_nproduced(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_nproduced(self)

    def pc_nproduced_avg(self):
        r"""pc_nproduced_avg(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_nproduced_avg(self)

    def pc_nproduced_var(self):
        r"""pc_nproduced_var(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_nproduced_var(self)

    def pc_input_buffers_full(self, *args):
        r"""
        pc_input_buffers_full(source_sptr self, int which) -> float
        pc_input_buffers_full(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_input_buffers_full(self, *args)

    def pc_input_buffers_full_avg(self, *args):
        r"""
        pc_input_buffers_full_avg(source_sptr self, int which) -> float
        pc_input_buffers_full_avg(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_input_buffers_full_avg(self, *args)

    def pc_input_buffers_full_var(self, *args):
        r"""
        pc_input_buffers_full_var(source_sptr self, int which) -> float
        pc_input_buffers_full_var(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_input_buffers_full_var(self, *args)

    def pc_output_buffers_full(self, *args):
        r"""
        pc_output_buffers_full(source_sptr self, int which) -> float
        pc_output_buffers_full(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_output_buffers_full(self, *args)

    def pc_output_buffers_full_avg(self, *args):
        r"""
        pc_output_buffers_full_avg(source_sptr self, int which) -> float
        pc_output_buffers_full_avg(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_output_buffers_full_avg(self, *args)

    def pc_output_buffers_full_var(self, *args):
        r"""
        pc_output_buffers_full_var(source_sptr self, int which) -> float
        pc_output_buffers_full_var(source_sptr self) -> pmt_vector_float
        """
        return _audio_swig.source_sptr_pc_output_buffers_full_var(self, *args)

    def pc_work_time(self):
        r"""pc_work_time(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_work_time(self)

    def pc_work_time_avg(self):
        r"""pc_work_time_avg(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_work_time_avg(self)

    def pc_work_time_var(self):
        r"""pc_work_time_var(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_work_time_var(self)

    def pc_work_time_total(self):
        r"""pc_work_time_total(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_work_time_total(self)

    def pc_throughput_avg(self):
        r"""pc_throughput_avg(source_sptr self) -> float"""
        return _audio_swig.source_sptr_pc_throughput_avg(self)

    def set_processor_affinity(self, mask):
        r"""set_processor_affinity(source_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _audio_swig.source_sptr_set_processor_affinity(self, mask)

    def unset_processor_affinity(self):
        r"""unset_processor_affinity(source_sptr self)"""
        return _audio_swig.source_sptr_unset_processor_affinity(self)

    def processor_affinity(self):
        r"""processor_affinity(source_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _audio_swig.source_sptr_processor_affinity(self)

    def active_thread_priority(self):
        r"""active_thread_priority(source_sptr self) -> int"""
        return _audio_swig.source_sptr_active_thread_priority(self)

    def thread_priority(self):
        r"""thread_priority(source_sptr self) -> int"""
        return _audio_swig.source_sptr_thread_priority(self)

    def set_thread_priority(self, priority):
        r"""set_thread_priority(source_sptr self, int priority) -> int"""
        return _audio_swig.source_sptr_set_thread_priority(self, priority)

    def name(self):
        r"""name(source_sptr self) -> std::string"""
        return _audio_swig.source_sptr_name(self)

    def symbol_name(self):
        r"""symbol_name(source_sptr self) -> std::string"""
        return _audio_swig.source_sptr_symbol_name(self)

    def input_signature(self):
        r"""input_signature(source_sptr self) -> io_signature_sptr"""
        return _audio_swig.source_sptr_input_signature(self)

    def output_signature(self):
        r"""output_signature(source_sptr self) -> io_signature_sptr"""
        return _audio_swig.source_sptr_output_signature(self)

    def unique_id(self):
        r"""unique_id(source_sptr self) -> long"""
        return _audio_swig.source_sptr_unique_id(self)

    def to_basic_block(self):
        r"""to_basic_block(source_sptr self) -> basic_block_sptr"""
        return _audio_swig.source_sptr_to_basic_block(self)

    def check_topology(self, ninputs, noutputs):
        r"""check_topology(source_sptr self, int ninputs, int noutputs) -> bool"""
        return _audio_swig.source_sptr_check_topology(self, ninputs, noutputs)

    def alias(self):
        r"""alias(source_sptr self) -> std::string"""
        return _audio_swig.source_sptr_alias(self)

    def set_block_alias(self, name):
        r"""set_block_alias(source_sptr self, std::string name)"""
        return _audio_swig.source_sptr_set_block_alias(self, name)

    def _post(self, which_port, msg):
        r"""_post(source_sptr self, swig_pmt_ptr which_port, swig_pmt_ptr msg)"""
        return _audio_swig.source_sptr__post(self, which_port, msg)

    def message_ports_in(self):
        r"""message_ports_in(source_sptr self) -> swig_pmt_ptr"""
        return _audio_swig.source_sptr_message_ports_in(self)

    def message_ports_out(self):
        r"""message_ports_out(source_sptr self) -> swig_pmt_ptr"""
        return _audio_swig.source_sptr_message_ports_out(self)

    def message_subscribers(self, which_port):
        r"""message_subscribers(source_sptr self, swig_pmt_ptr which_port) -> swig_pmt_ptr"""
        return _audio_swig.source_sptr_message_subscribers(self, which_port)

# Register source_sptr in _audio_swig:
_audio_swig.source_sptr_swigregister(source_sptr)

source_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
source = source.make;

class sink_sptr(object):
    r"""Proxy of C++ boost::shared_ptr< gr::audio::sink > class."""

    thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc="The membership flag")
    __repr__ = _swig_repr

    def __init__(self, *args):
        r"""
        __init__(sink_sptr self) -> sink_sptr
        __init__(sink_sptr self, sink p) -> sink_sptr
        """
        _audio_swig.sink_sptr_swiginit(self, _audio_swig.new_sink_sptr(*args))

    def __deref__(self):
        r"""__deref__(sink_sptr self) -> sink"""
        return _audio_swig.sink_sptr___deref__(self)
    __swig_destroy__ = _audio_swig.delete_sink_sptr

    def make(self, *args, **kwargs):
        r"""make(sink_sptr self, int sampling_rate, std::string const device_name="", bool ok_to_block=True) -> sink_sptr"""
        return _audio_swig.sink_sptr_make(self, *args, **kwargs)

    def history(self):
        r"""history(sink_sptr self) -> unsigned int"""
        return _audio_swig.sink_sptr_history(self)

    def declare_sample_delay(self, *args):
        r"""
        declare_sample_delay(sink_sptr self, int which, int delay)
        declare_sample_delay(sink_sptr self, unsigned int delay)
        """
        return _audio_swig.sink_sptr_declare_sample_delay(self, *args)

    def sample_delay(self, which):
        r"""sample_delay(sink_sptr self, int which) -> unsigned int"""
        return _audio_swig.sink_sptr_sample_delay(self, which)

    def set_output_multiple(self, multiple):
        r"""set_output_multiple(sink_sptr self, int multiple)"""
        return _audio_swig.sink_sptr_set_output_multiple(self, multiple)

    def output_multiple(self):
        r"""output_multiple(sink_sptr self) -> int"""
        return _audio_swig.sink_sptr_output_multiple(self)

    def relative_rate(self):
        r"""relative_rate(sink_sptr self) -> double"""
        return _audio_swig.sink_sptr_relative_rate(self)

    def relative_rate_i(self):
        r"""relative_rate_i(sink_sptr self) -> uint64_t"""
        return _audio_swig.sink_sptr_relative_rate_i(self)

    def relative_rate_d(self):
        r"""relative_rate_d(sink_sptr self) -> uint64_t"""
        return _audio_swig.sink_sptr_relative_rate_d(self)

    def start(self):
        r"""start(sink_sptr self) -> bool"""
        return _audio_swig.sink_sptr_start(self)

    def stop(self):
        r"""stop(sink_sptr self) -> bool"""
        return _audio_swig.sink_sptr_stop(self)

    def nitems_read(self, which_input):
        r"""nitems_read(sink_sptr self, unsigned int which_input) -> uint64_t"""
        return _audio_swig.sink_sptr_nitems_read(self, which_input)

    def nitems_written(self, which_output):
        r"""nitems_written(sink_sptr self, unsigned int which_output) -> uint64_t"""
        return _audio_swig.sink_sptr_nitems_written(self, which_output)

    def set_log_level(self, level):
        r"""set_log_level(sink_sptr self, std::string level)"""
        return _audio_swig.sink_sptr_set_log_level(self, level)

    def log_level(self):
        r"""log_level(sink_sptr self) -> std::string"""
        return _audio_swig.sink_sptr_log_level(self)

    def max_noutput_items(self):
        r"""max_noutput_items(sink_sptr self) -> int"""
        return _audio_swig.sink_sptr_max_noutput_items(self)

    def set_max_noutput_items(self, m):
        r"""set_max_noutput_items(sink_sptr self, int m)"""
        return _audio_swig.sink_sptr_set_max_noutput_items(self, m)

    def unset_max_noutput_items(self):
        r"""unset_max_noutput_items(sink_sptr self)"""
        return _audio_swig.sink_sptr_unset_max_noutput_items(self)

    def is_set_max_noutput_items(self):
        r"""is_set_max_noutput_items(sink_sptr self) -> bool"""
        return _audio_swig.sink_sptr_is_set_max_noutput_items(self)

    def set_min_noutput_items(self, m):
        r"""set_min_noutput_items(sink_sptr self, int m)"""
        return _audio_swig.sink_sptr_set_min_noutput_items(self, m)

    def min_noutput_items(self):
        r"""min_noutput_items(sink_sptr self) -> int"""
        return _audio_swig.sink_sptr_min_noutput_items(self)

    def max_output_buffer(self, i):
        r"""max_output_buffer(sink_sptr self, int i) -> long"""
        return _audio_swig.sink_sptr_max_output_buffer(self, i)

    def set_max_output_buffer(self, *args):
        r"""
        set_max_output_buffer(sink_sptr self, long max_output_buffer)
        set_max_output_buffer(sink_sptr self, int port, long max_output_buffer)
        """
        return _audio_swig.sink_sptr_set_max_output_buffer(self, *args)

    def min_output_buffer(self, i):
        r"""min_output_buffer(sink_sptr self, int i) -> long"""
        return _audio_swig.sink_sptr_min_output_buffer(self, i)

    def set_min_output_buffer(self, *args):
        r"""
        set_min_output_buffer(sink_sptr self, long min_output_buffer)
        set_min_output_buffer(sink_sptr self, int port, long min_output_buffer)
        """
        return _audio_swig.sink_sptr_set_min_output_buffer(self, *args)

    def pc_noutput_items(self):
        r"""pc_noutput_items(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_noutput_items(self)

    def pc_noutput_items_avg(self):
        r"""pc_noutput_items_avg(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_noutput_items_avg(self)

    def pc_noutput_items_var(self):
        r"""pc_noutput_items_var(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_noutput_items_var(self)

    def pc_nproduced(self):
        r"""pc_nproduced(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_nproduced(self)

    def pc_nproduced_avg(self):
        r"""pc_nproduced_avg(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_nproduced_avg(self)

    def pc_nproduced_var(self):
        r"""pc_nproduced_var(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_nproduced_var(self)

    def pc_input_buffers_full(self, *args):
        r"""
        pc_input_buffers_full(sink_sptr self, int which) -> float
        pc_input_buffers_full(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_input_buffers_full(self, *args)

    def pc_input_buffers_full_avg(self, *args):
        r"""
        pc_input_buffers_full_avg(sink_sptr self, int which) -> float
        pc_input_buffers_full_avg(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_input_buffers_full_avg(self, *args)

    def pc_input_buffers_full_var(self, *args):
        r"""
        pc_input_buffers_full_var(sink_sptr self, int which) -> float
        pc_input_buffers_full_var(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_input_buffers_full_var(self, *args)

    def pc_output_buffers_full(self, *args):
        r"""
        pc_output_buffers_full(sink_sptr self, int which) -> float
        pc_output_buffers_full(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_output_buffers_full(self, *args)

    def pc_output_buffers_full_avg(self, *args):
        r"""
        pc_output_buffers_full_avg(sink_sptr self, int which) -> float
        pc_output_buffers_full_avg(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_output_buffers_full_avg(self, *args)

    def pc_output_buffers_full_var(self, *args):
        r"""
        pc_output_buffers_full_var(sink_sptr self, int which) -> float
        pc_output_buffers_full_var(sink_sptr self) -> pmt_vector_float
        """
        return _audio_swig.sink_sptr_pc_output_buffers_full_var(self, *args)

    def pc_work_time(self):
        r"""pc_work_time(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_work_time(self)

    def pc_work_time_avg(self):
        r"""pc_work_time_avg(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_work_time_avg(self)

    def pc_work_time_var(self):
        r"""pc_work_time_var(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_work_time_var(self)

    def pc_work_time_total(self):
        r"""pc_work_time_total(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_work_time_total(self)

    def pc_throughput_avg(self):
        r"""pc_throughput_avg(sink_sptr self) -> float"""
        return _audio_swig.sink_sptr_pc_throughput_avg(self)

    def set_processor_affinity(self, mask):
        r"""set_processor_affinity(sink_sptr self, std::vector< int,std::allocator< int > > const & mask)"""
        return _audio_swig.sink_sptr_set_processor_affinity(self, mask)

    def unset_processor_affinity(self):
        r"""unset_processor_affinity(sink_sptr self)"""
        return _audio_swig.sink_sptr_unset_processor_affinity(self)

    def processor_affinity(self):
        r"""processor_affinity(sink_sptr self) -> std::vector< int,std::allocator< int > >"""
        return _audio_swig.sink_sptr_processor_affinity(self)

    def active_thread_priority(self):
        r"""active_thread_priority(sink_sptr self) -> int"""
        return _audio_swig.sink_sptr_active_thread_priority(self)

    def thread_priority(self):
        r"""thread_priority(sink_sptr self) -> int"""
        return _audio_swig.sink_sptr_thread_priority(self)

    def set_thread_priority(self, priority):
        r"""set_thread_priority(sink_sptr self, int priority) -> int"""
        return _audio_swig.sink_sptr_set_thread_priority(self, priority)

    def name(self):
        r"""name(sink_sptr self) -> std::string"""
        return _audio_swig.sink_sptr_name(self)

    def symbol_name(self):
        r"""symbol_name(sink_sptr self) -> std::string"""
        return _audio_swig.sink_sptr_symbol_name(self)

    def input_signature(self):
        r"""input_signature(sink_sptr self) -> io_signature_sptr"""
        return _audio_swig.sink_sptr_input_signature(self)

    def output_signature(self):
        r"""output_signature(sink_sptr self) -> io_signature_sptr"""
        return _audio_swig.sink_sptr_output_signature(self)

    def unique_id(self):
        r"""unique_id(sink_sptr self) -> long"""
        return _audio_swig.sink_sptr_unique_id(self)

    def to_basic_block(self):
        r"""to_basic_block(sink_sptr self) -> basic_block_sptr"""
        return _audio_swig.sink_sptr_to_basic_block(self)

    def check_topology(self, ninputs, noutputs):
        r"""check_topology(sink_sptr self, int ninputs, int noutputs) -> bool"""
        return _audio_swig.sink_sptr_check_topology(self, ninputs, noutputs)

    def alias(self):
        r"""alias(sink_sptr self) -> std::string"""
        return _audio_swig.sink_sptr_alias(self)

    def set_block_alias(self, name):
        r"""set_block_alias(sink_sptr self, std::string name)"""
        return _audio_swig.sink_sptr_set_block_alias(self, name)

    def _post(self, which_port, msg):
        r"""_post(sink_sptr self, swig_pmt_ptr which_port, swig_pmt_ptr msg)"""
        return _audio_swig.sink_sptr__post(self, which_port, msg)

    def message_ports_in(self):
        r"""message_ports_in(sink_sptr self) -> swig_pmt_ptr"""
        return _audio_swig.sink_sptr_message_ports_in(self)

    def message_ports_out(self):
        r"""message_ports_out(sink_sptr self) -> swig_pmt_ptr"""
        return _audio_swig.sink_sptr_message_ports_out(self)

    def message_subscribers(self, which_port):
        r"""message_subscribers(sink_sptr self, swig_pmt_ptr which_port) -> swig_pmt_ptr"""
        return _audio_swig.sink_sptr_message_subscribers(self, which_port)

# Register sink_sptr in _audio_swig:
_audio_swig.sink_sptr_swigregister(sink_sptr)

sink_sptr.__repr__ = lambda self: "<gr_block %s (%d)>" % (self.name(), self.unique_id())
sink = sink.make;


