MCPcopy Create free account
hub / github.com/SFML/SFML / onStop

Method onStop

src/SFML/Audio/SoundBufferRecorder.cpp:67–74  ·  view source on GitHub ↗

///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

65
66////////////////////////////////////////////////////////////
67void 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////////////////////////////////////////////////////////////

Callers

nothing calls this directly

Calls 1

loadFromSamplesMethod · 0.80

Tested by

no test coverage detected