MCPcopy Create free account
hub / github.com/FastLED/FastLED / create

Method create

src/fl/audio/audio_input.cpp.hpp:108–115  ·  view source on GitHub ↗

Static method delegates to free function

Source from the content-addressed store, hash-verified

106
107// Static method delegates to free function
108fl::shared_ptr<IInput>
109IInput::create(const Config &config, fl::string *error_message) {
110 auto input = platform_create_audio_input(config, error_message);
111 if (input) {
112 input->setGain(config.getGain());
113 }
114 return input;
115}
116
117} // namespace audio
118} // namespace fl

Callers

nothing calls this directly

Calls 3

setGainMethod · 0.45
getGainMethod · 0.45

Tested by

no test coverage detected