gnurradio Windows 10 no audio

691 views
Skip to first unread message

doug mcdonald

unread,
Mar 15, 2016, 8:15:53 PM3/15/16
to Pothos Users
I went to Windows 10 and so far the only thing that does not work
is gnuradio ... and it almost does. My very complex (and high quality!) FM radio works
perfectly except ... it fails if I have the audio output enabled. It DID work, badly (stuttering)
when I was using the "TEMP" original user, but when I got my own desktop working
now it does not,neither input nor output. The .conf file seems correct and in the
right place. With audio out disabled the various scopes and FFTs I have work perfectly.

Is a Windows setting wrong? I'm mystified.

doug mcdonald

unread,
Mar 15, 2016, 10:28:14 PM3/15/16
to Pothos Users
error message is

before paHostApiInitializers[0].
after paHostApiInitializers[0].
before paHostApiInitializers[1].
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
PA - PlatformId = 0x2
PA - MajorVersion = 0x6
PA - MinorVersion = 0x2
after paHostApiInitializers[1].
before paHostApiInitializers[2].
after paHostApiInitializers[2].
before paHostApiInitializers[3].
WASAPI: device idx: 00
WASAPI: ---------------
WASAPI:0| name[Realtek Digital Output (Realtek High Definition Audio)]
WASAPI:0| form-factor[8]
WASAPI:0| def.SR[44100] max.CH[2] latency{hi[0.010159] lo[0.003000]}
WASAPI: device idx: 01
WASAPI: ---------------
WASAPI:1| name[Speakers (Realtek High Definition Audio)]
WASAPI:1| form-factor[1]
WASAPI:1| def.SR[48000] max.CH[2] latency{hi[0.010000] lo[0.003000]}
WASAPI: device idx: 02
WASAPI: ---------------
WASAPI:2| name[Stereo Mix (Realtek High Definition Audio)]
WASAPI:2| form-factor[10]
WASAPI: failed PaWasapi_Initialize error[-9986|Internal PortAudio error]
TerminateHostApis in
TerminateHostApis out
Traceback (most recent call last):
  File "C:/NewPrograms/hackrfprograms/top_block.py", line 202, in <module>
    main()
  File "C:/NewPrograms/hackrfprograms/top_block.py", line 196, in main
    tb = top_block_cls()
  File "C:/NewPrograms/hackrfprograms/top_block.py", line 147, in __init__
    self.audio_source_0 = audio.source(samp_rate, "", True)
  File "C:\Program Files\PothosSDR\lib\site-packages\gnuradio\audio\audio_swig.py", line 129, in make
    return _audio_swig.source_make(*args, **kwargs)
RuntimeError: audio_portaudio_source

Josh Blum

unread,
Mar 15, 2016, 10:33:15 PM3/15/16
to pothos...@googlegroups.com
Hi Doug,

Not sure... maybe this will help.

The default gnuradio audio sink uses the windows API. The conf
instructions here switch to the portaudio implementation because there
is no windows API audio source implementation:
https://github.com/pothosware/PothosSDR/wiki/GNURadio#gnuradio-configuration

So if you don't need the audio source, you might try to delete the
[audio] section of the conf file which should make everything fallback
to the windows API version of the block. So that may work for you.

Second, PCs have a lot of audio devices. So its entirely possible that
portaudio selected the wrong output device by default. The correct one
can be specified using the device name parameter.

I don't know a good way to get a list of port audio device string in
gnuradio, but the pothos gui has a host explorer panel which can be used
to view available devices:
https://github.com/pothosware/pothos-gui/wiki/Tutorial#the-host-explorer-panel

I also mentioned this in a past email:
https://groups.google.com/forum/#!msg/pothos-users/Mh0bQu-r48w/RSEXL5zjGAAJ

Hope that helps,
-josh

doug mcdonald

unread,
Mar 15, 2016, 11:08:07 PM3/15/16
to Pothos Users
I got it working by playing with the settings in the Windows audio control panel. I had
to set the default rates for shared use in each and every possible in device the same and every possible out
device the same (not same as in) eve if one is never used.

I hate Windows new versions.
Reply all
Reply to author
Forward
0 new messages