GNU Radio 3.5.1 C++ API
audio_osx_sink Class Reference

audio sink using OSXinput signature is one or two streams of floats. Input samples must be in the range [-1,1]. More...

#include <audio_osx_sink.h>

Inheritance diagram for audio_osx_sink:

List of all members.

Public Member Functions

 audio_osx_sink (int sample_rate=44100, const std::string device_name="2", bool do_block=true, int channel_config=-1, int max_sample_count=-1)
 ~audio_osx_sink ()
bool IsRunning ()
bool start ()
 Called to enable drivers, etc for i/o devices.
bool stop ()
 Called to disable drivers, etc for i/o devices.
int work (int noutput_items, gr_vector_const_void_star &input_items, gr_vector_void_star &output_items)
 just like gr_block::general_work, only this arranges to call consume_each for you

Detailed Description

audio sink using OSX

input signature is one or two streams of floats. Input samples must be in the range [-1,1].


Constructor & Destructor Documentation

audio_osx_sink::audio_osx_sink ( int  sample_rate = 44100,
const std::string  device_name = "2",
bool  do_block = true,
int  channel_config = -1,
int  max_sample_count = -1 
)
audio_osx_sink::~audio_osx_sink ( )

Member Function Documentation

bool audio_osx_sink::IsRunning ( )
bool audio_osx_sink::start ( ) [virtual]

Called to enable drivers, etc for i/o devices.

This allows a block to enable an associated driver to begin transfering data just before we start to execute the scheduler. The end result is that this reduces latency in the pipeline when dealing with audio devices, usrps, etc.

Reimplemented from gr_block.

bool audio_osx_sink::stop ( ) [virtual]

Called to disable drivers, etc for i/o devices.

Reimplemented from gr_block.

int audio_osx_sink::work ( int  noutput_items,
gr_vector_const_void_star input_items,
gr_vector_void_star output_items 
) [virtual]

just like gr_block::general_work, only this arranges to call consume_each for you

The user must override work to define the signal processing code

Implements gr_sync_block.


The documentation for this class was generated from the following file: