Skip to content
Snippets Groups Projects
Commit 6ec8a172 authored by Sebastian Hahta's avatar Sebastian Hahta
Browse files

fix use of uninitialized variable

parent 9b42ecb8
Branches
Tags
No related merge requests found
Pipeline #27973 passed
......@@ -30,16 +30,13 @@ static int pa_speaker_callback(const void *input, void *output,
#endif
Speaker::Speaker(nlohmann::json &config) : ftl::Configurable(config), buffer_(nullptr) {
Speaker::Speaker(nlohmann::json &config) : ftl::Configurable(config), buffer_(nullptr), stream_(nullptr) {
#ifdef HAVE_PORTAUDIO
ftl::audio::pa_init();
#else // No portaudio
active_ = false;
LOG(ERROR) << "No audio support";
#endif
active_ = false;
extra_delay_ = value("delay",0.0f);
on("delay", [this](const ftl::config::Event &e) {
extra_delay_ = value("delay",0.0f);
......
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment