Hi <br>
<br>
I want to play the following program :<br>
<br>
from gnuradio import gr<br>
from gnuradio import audio<br>
from gnuradio.eng_option import eng_option<br>
from optparse import OptionParser<br>
<br>
class my_top_block(gr.top_block):<br>
<br>
def __init__(self):<br>
gr.top_block.__init__(self)<br>
<br>
parser = OptionParser(option_class=eng_option)<br>
parser.add_option("-O", "--audio-output", type="string", default="",<br>
help="pcm output device name. E.g., hw:0,0 or /dev/dsp")<br>
parser.add_option("-r", "--sample-rate", type="eng_float", default=48000,<br>
help="set sample rate to RATE (48000)")<br>
(options, args) = parser.parse_args ()<br>
if len(args) != 0:<br>
parser.print_help()<br>
raise SystemExit, 1<br>
<br>
sample_rate = int(options.sample_rate)<br>
ampl = 0.1<br>
<br>
src0 = gr.sig_source_f (sample_rate, gr.GR_SIN_WAVE, 350, ampl)<br>
print src0<br>
#src11 = [src0(1),src0(2)]<br>
src1 = gr.sig_source_f (sample_rate, gr.GR_SIN_WAVE, 440, ampl)<br>
dst = audio.sink (sample_rate, options.audio_output)<br>
self.connect (src0, (dst, 0))<br>
self.connect (src1, (dst, 1))<br>
<br>
<br>
if __name__ == '__main__':<br>
try:<br>
my_top_block().run()<br>
except KeyboardInterrupt:<br>
pass<br>
<br>
<br>
though i get the output but i also get the following statement<br>
<gr_block sig_source_f (1)><br>
<br>
i donot understand what this line means. My aim is to capture the samples of src0. for that purpose i have given <b>print src0 </b>command.<br>
<br>
Regards,<br>
Harshal<br>