[Discuss-gnuradio] Audio source cannot use 2 outputs (Stereo) in windows

2019-05-03 Thread Gary.Simpkins

Hi Marcus and anyone who can help.

I have double checked  and  all the windows audio devices I have used 
for the audio source are 2 channels.


They work fine with  WSJT-X, or MAP65.

The stereo channels I wish to use are the I and Q outputs from my 
SDRPLay Duo using virtual cables


(I have tried the speaker outputs from the PC with GNURadio audio source 
and get the same problem)


Does the audio source work with two channels on linux?

I am using the latest version of GNURadio 3.7.13.4 on a 64bit win 10 PC.

I am really stuck here. Nothing I try allows the second output to be 
enabled.


Regards

Gary

On 02/05/2019 10:00, Müller, Marcus (CEL) wrote:
Hi Gary, since we acutely changed things in the Windows audio sink:
What's your version of GNU Radio?

Generally, Windows seems to be of the conviction that the audio device
you're trying to record from only has one, not two channels.

Best regards,
Marcus

On Thu, 2019-05-02 at 08:53 +0100, Gary.Simpkins wrote:
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 
  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


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


Re: [Discuss-gnuradio] Audio source cannot use 2 outputs (Stereo) in windows

2019-05-03 Thread CEL
Hi Gary!

> I have double checked  and  all the windows audio devices I have
> used 
> for the audio source are 2 channels.

I never doubted that – all I wanted to point out that the I think it
was Windows that told the GNU Radio windows audio source it saw only
one channel, and consequently the windows audio source only enabled one
output port.

I was wrong, it turns out! When you look at gr-
audio/liob/windows/windows_source.cc, you'll find the number of output
streams of the block to be hardcoded to be between 1 and 1, so... 1:


windows_source::windows_source(int sampling_freq,
   const std::string
device_name)
  : sync_block("audio_windows_source",
  io_signature::make(0, 0, 0),
  io_signature::make(1, 1,
sizeof(float))),

The last line does that.
So, that's a um, underdeveloped feature in the windows audio source.

> 
> They work fine with  WSJT-X, or MAP65.
> 
> The stereo channels I wish to use are the I and Q outputs from my 
> SDRPLay Duo using virtual cables
> 
> (I have tried the speaker outputs from the PC with GNURadio audio
> source 
> and get the same problem)
> 
> Does the audio source work with two channels on linux?

Yes, (haven't tried today, but it /used/ to work), but it sadly shares
nearly no code with the windows audio source. That's due to fact that
Linux' ALSA and Windows' sound API and OS X's Core Audio are pretty
different.

I do have an idea, though, which *might* be a solution to your problem,
but: untested; don't expect wonders.

Has your GNU Radio build portaudio enabled? As said, it's not tested,
but unlike the windows audio source, the portaudio source at least from
the state of the source code (far as I can tell) enables as many
maximum output streams as your card has.
> 
> I am using the latest version of GNURadio 3.7.13.4 on a 64bit win 10
> PC.
> 

Built from source, or where did you happen across it?

> I am really stuck here. Nothing I try allows the second output to be 
> enabled.
> 

Sorry to hear that! We'll try to get you unstuck :)

Best regards,
Marcus


smime.p7s
Description: S/MIME cryptographic signature
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio


[Discuss-gnuradio] B200 Overflow

2019-05-03 Thread Rensi Mathew
Dear sirI am using B200 SDR to run the program usrp_spectrum_sense.py with a 
sampling frequency of 16e6.I think I am using a fairly low sampling rate.
Still I am getting some ''.
Could someone tell me the possible reasons for the same? And how I can avoid 
the same?
Thanking youRensi Sam
___
Discuss-gnuradio mailing list
Discuss-gnuradio@gnu.org
https://lists.gnu.org/mailman/listinfo/discuss-gnuradio