MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / inputChanged

Method inputChanged

src/audio/AudioSinkFileThread.cpp:78–88  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

76}
77
78void AudioSinkFileThread::inputChanged(AudioThreadInput /* oldProps */, AudioThreadInputPtr /* newProps */) {
79 // close, set new parameters, adjust file name sequence and re-open?
80 if (!audioFileHandler) {
81 return;
82 }
83
84 audioFileHandler->closeFile();
85
86 //reset duration counter
87 durationMeasurement.start();
88}
89
90void AudioSinkFileThread::setAudioFileNameBase(const std::string& baseName) {
91

Callers

nothing calls this directly

Calls 2

closeFileMethod · 0.80
startMethod · 0.45

Tested by

no test coverage detected