I’ve got my custom block producing mono audio at 8KS/s which I am
an audio_sink(8000, “plughw:0,0”) and have some questions.
First question: what is the range of values that each output sample can
assume before clipping? Since they’re floats I am assuming its -1.0 …
Is that correct?
Second question: for now I am providing audio silence but get a constant
stream of aU events displayed on the console. I am a little bothered by
because general_work always produces exactly what its asked for:
custom_block_ff::general_work(int nof_output_items, gr_vector_int&
nof_input_items, gr_vector_const_void_star& input_items,
// handle inputs
// produce audio (even if silence) consume(0, nof_input_items); float *out = reinterpret_cast<float*>(output_items); fill(out, out + nof_output_items, 0.0); return nof_output_items;