On Sat, May 10, 2014 at 12:59 AM, Bruce Quinton <
zan...@gmail.com> wrote:
>
> You also don't load the settings in the same peace of code, so the "main
> windows" load config doesn't actually load ALL of the conf items some items
> are loaded at a later stage for example the IQ_Blalance is loade by the
> receiver.cpp,
The configuration file is loaded into memory in mainwindow.cpp /
loadConfig. This function itself reads some settings, then calls the
relevant subsystems to read their own data from the config. But
nothing is read in receiver.cpp. The only interaction with
receiver.cpp is through the set/get functions.
There is one exception, namely when we check the audio subsystem, but
that's really just a debug output and not a a setting used by gqrx.
It's a gnuradio thing, which is why it is not checked in
mainwindow.cpp.
> I wish to change the "Audio" play back to allow the user to stop the audio
> pushing to the sound card. (I know, I know what the point of a radio if you
> cannot hear it) but I only want to record it remotely so I need to add a GNU
> Radio "block" I have written that allows GNU to stream to a file. The
> "block" records for x amount of seconds and starts a new file, it also
> detects silences and if n number of seconds of silence is detected the file
> is closed, and once noise is detected again a new file (time stamped) is
> started. Guidance on how I can achieve this so that it will not be lost
> during upgrades of your software would be great.
You could use the existing network streaming interface to send audio
to your own code:
http://gqrx.dk/doc/streaming-audio-over-udp
That way your code will not be vulnerable to internal changes in gqrx.
Alex