Skip to content

Commit

Permalink
Remove extra var and fix setting play_audio
Browse files Browse the repository at this point in the history
  • Loading branch information
JVital2013 committed Jan 22, 2024
1 parent ce9bbb4 commit 7647d96
Showing 1 changed file with 2 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ namespace cluster
CLUSTERInstrumentsDecoderModule::CLUSTERInstrumentsDecoderModule(std::string input_file, std::string output_file_hint, nlohmann::json parameters)
: ProcessingModule(input_file, output_file_hint, parameters)
{
play_audio = satdump::config::main_cfg["user_interface"]["play_audio"]["value"].get<bool>();
}

void CLUSTERInstrumentsDecoderModule::process()
Expand All @@ -34,8 +35,6 @@ namespace cluster

logger->info("Using input frames " + d_input_file);

play_audio = satdump::config::main_cfg["user_interface"]["play_audio"]["value"].get<bool>();

time_t lastTime = 0;
uint8_t cadu[1279];

Expand All @@ -50,7 +49,6 @@ namespace cluster

// Audio stuff
int16_t audio_buffer[4352];
bool enable_audio = false;
std::shared_ptr<audio::AudioSink> audio_sink;
if (input_data_type != DATA_FILE && audio::has_sink())
{
Expand Down Expand Up @@ -214,7 +212,7 @@ namespace cluster
ImGui::SameLine();
ImGui::Text("%d", param_commands);

if (enable_audio) //Does this work?!
if (enable_audio)
{
ImGui::Spacing();
const char* btn_icon, * label;
Expand Down

0 comments on commit 7647d96

Please sign in to comment.