|
From: | Marcus Müller |
Subject: | Re: [Discuss-gnuradio] Portaudio Audio Source in Windows |
Date: | Mon, 9 May 2016 10:45:56 +0200 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 |
Hi Tony, > The lack of path separators is troubling. I couldn't agree more. But since that just means that the separator get's "eaten" somewhere, and we don't know whether that happens when generating these paths or just when printing, I'm still full of hope… The fact these directories don't exist on my machine (even with appropriate separators) is more troubling.… my hopes being crushed. > Is there a way to override the default values? Yes, but not at runtime, I'm afraid: The "first" directory a program looks into for configuration has to be hard-coded somewhere, and in the case of GNU Radio, it's specified via the GR_PREFSDIR CMake Variable when building GNU Radio. That happens in the gnuradio/gnuradio/lib/constants.cc.in file, where CMake expands the @GR_PREFSDIR@ macro. The actual setting of that variable happens in the main gnuradio/CMakeLists.txt, line 165 set(SYSCONFDIR "${CMAKE_INSTALL_PREFIX}/${GR_CONF_DIR}" CACHE PATH "System configuration directory" FORCE)so we learn that CMAKE_INSTALL_PREFIX was set to C:gr-buildsrc-stage3staged_install, plus a few \, probably :D So that's essentially where I'd have to give up: That code was put there during build, and I can't change it later. What I'll probably do is a bug report about GNU Radio, upon finding the prefsdir path not to be a directory (in your case: not to exist at all) giving up and not even trying to read any other paths. I might fix that by allowing users to specify these directories as environment variables; that would make sense to me, but as it kind of changes "logical" API, I'd like to discuss this with a maintainer. I think I might come up with a workaround, however. Again, I haven't tried this, especially not under windows, where the whole "launch an editor and edit that file" aspect might fail, but *shrug*: In your GRC flow graph, add a "python module". There, without indenting, add the following code from gnuradio import gr p = gr.prefs() p.set_string("audio","audio_module","portaudio") and close the editor. Basically, you're setting the configuration option manually for the meantime. Best regards, Marcus On 09.05.2016 04:38, Tony Richardson
wrote:
|
[Prev in Thread] | Current Thread | [Next in Thread] |