MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / close

Method close

sources/base/SoundCapture.cpp:167–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

165}
166
167void SoundCapture::close(uint32_t instance)
168{
169 try
170 {
171 Info(_logger, "Releasing sound grabber (handle: %i)", instance);
172
173 if (_instances.contains(instance))
174 {
175 _instances.removeOne(instance);
176
177 if (_instances.count() == 0)
178 {
179 Info(_logger, "The sound device stops");
180 stop();
181 Info(_logger, "The sound device has been stopped");
182 }
183 }
184 }
185 catch (...)
186 {
187
188 }
189}
190
191bool SoundCapture::analyzeSpectrum(int16_t soundBuffer[], int sizeP)
192{

Callers 15

readFileFunction · 0.45
writeFileFunction · 0.45
loadLutFileMethod · 0.45
stopMethod · 0.45
newConnectionMethod · 0.45
JsonClientConnectionMethod · 0.45
DecompressZSTDFunction · 0.45
forceCloseMethod · 0.45
newConnectionMethod · 0.45
stopServerMethod · 0.45
forwardJsonMessageMethod · 0.45
putSystemInfoMethod · 0.45

Calls 1

countMethod · 0.80

Tested by

no test coverage detected