| 165 | } |
| 166 | |
| 167 | void 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 | |
| 191 | bool SoundCapture::analyzeSpectrum(int16_t soundBuffer[], int sizeP) |
| 192 | { |
no test coverage detected