///////////////////////////////////////////////////////
| 65 | |
| 66 | //////////////////////////////////////////////////////////// |
| 67 | void SoundBufferRecorder::onStop() |
| 68 | { |
| 69 | if (m_samples.empty()) |
| 70 | return; |
| 71 | |
| 72 | if (!m_buffer.loadFromSamples(m_samples.data(), m_samples.size(), getChannelCount(), getSampleRate(), getChannelMap())) |
| 73 | err() << "Failed to stop capturing audio data" << std::endl; |
| 74 | } |
| 75 | |
| 76 | |
| 77 | //////////////////////////////////////////////////////////// |
nothing calls this directly
no test coverage detected