MCPcopy Create free account
hub / github.com/Signalsmith-Audio/reverb-example-code / extendDuration

Method extendDuration

main.cpp:82–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

80 }
81
82 void extendDuration(double seconds) {
83 int extraSamples = seconds*inputWav.sampleRate;
84 inputWav.samples.resize(inputWav.samples.size() + extraSamples, 0);
85 }
86public:
87 ExampleRunner(std::string inputFile, std::string outputPrefix) : inputWav(inputFile), outputPrefix(outputPrefix) {
88 if (!inputWav.result) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected