GNU Radio 3.6.5 C++ API

audio_oss_source Class Reference

audio source using OSSOutput signature is one or two streams of floats. Output samples will be in the range [-1,1]. More...

#include <audio_oss_source.h>

Inheritance diagram for audio_oss_source:
audio_source gr_sync_block gr_block gr_basic_block gr_msg_accepter gruel::msg_accepter

List of all members.

Public Member Functions

 audio_oss_source (int sampling_rate, const std::string device_name="", bool ok_to_block=true)
 ~audio_oss_source ()
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 source using OSS

Output signature is one or two streams of floats. Output samples will be in the range [-1,1].


Constructor & Destructor Documentation

audio_oss_source::audio_oss_source ( int  sampling_rate,
const std::string  device_name = "",
bool  ok_to_block = true 
)
audio_oss_source::~audio_oss_source ( )

Member Function Documentation

int audio_oss_source::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: