Skip to content

Commit

Permalink
multi_vfo: make auto recording work for newly added narrow demodulators
Browse files Browse the repository at this point in the history
  • Loading branch information
vladisslav2011 committed Nov 5, 2022
1 parent 95e30f1 commit 30926df
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/applications/gqrx/receiver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,10 +173,6 @@ receiver::receiver(const std::string input_device,
qDebug() << "Using audio backend:"
<< pref.get_string("audio", "audio_module", "N/A").c_str();

/* rx->set_rec_event_handler(std::bind(audio_rec_event, this,
std::placeholders::_1,
std::placeholders::_2));
*/
}

receiver::~receiver()
Expand Down Expand Up @@ -796,6 +792,10 @@ int receiver::add_rx()
int old = d_current;
d_current = rx.size() - 1;
rx[d_current]->set_index(d_current);
rx[d_current]->set_rec_event_handler(std::bind(audio_rec_event, this,
std::placeholders::_1,
std::placeholders::_2,
std::placeholders::_3));
set_demod_locked(rx[old]->get_demod(), old);
if(d_running)
{
Expand Down
3 changes: 3 additions & 0 deletions src/receivers/receiver_base.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -491,7 +491,10 @@ void receiver_base_cf::rec_event(receiver_base_cf * self, std::string filename,
{
self->d_audio_filename = filename;
if(self->d_rec_event)
{
self->d_rec_event(self->d_vfo->index, filename, is_running);
std::cerr<<"d_rec_event("<<self->d_vfo->index<<","<<filename<<","<<is_running<<")\n";
}
}

void receiver_base_cf::restore_settings(receiver_base_cf_sptr from)
Expand Down

0 comments on commit 30926df

Please sign in to comment.