Hi. Anyone who can help.

Try as I may I cannot get a second port working using the audio source block.

When I set the number of outputs to 2 for stereo (as in the documentation) I get the error below.

File "C:\Users\Gary\Documents\top_block.py", line 109, in <module>
    main()
  File "C:\Users\Gary\Documents\top_block.py", line 97, in main
    tb = top_block_cls()
  File "C:\Users\Gary\Documents\top_block.py", line 75, in __init__
    self.connect((self.audio_source_0, 1), (self.audio_sink_1, 0))
  File "C:\GNURadio-3.7\lib\site-packages\gnuradio\gr\hier_block2.py", line 47, in wrapped
    func(self, src, src_port, dst, dst_port)
  File "C:\GNURadio-3.7\lib\site-packages\gnuradio\gr\hier_block2.py", line 110, in connect
    self.primitive_connect(*args)
  File "C:\GNURadio-3.7\lib\site-packages\gnuradio\gr\runtime_swig.py", line 5312, in primitive_connect
    return _runtime_swig.top_block_sptr_primitive_connect(self, *args)
ValueError: port number 1 exceeds max of 0

Am I missing something?

Gary



_______________________________________________
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio

Reply via email to