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

Method initialize

src/SFML/Audio/SoundStream.cpp:261–270  ·  view source on GitHub ↗

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

Source from the content-addressed store, hash-verified

259
260////////////////////////////////////////////////////////////
261void SoundStream::initialize(unsigned int channelCount, unsigned int sampleRate, const std::vector<SoundChannel>& channelMap)
262{
263 m_impl->channelCount = channelCount;
264 m_impl->sampleRate = sampleRate;
265 m_impl->channelMap = channelMap;
266 m_impl->samplesProcessed = 0;
267
268 m_impl->deinitialize();
269 m_impl->initialize();
270}
271
272
273////////////////////////////////////////////////////////////

Callers 1

ImplMethod · 0.45

Calls 1

deinitializeMethod · 0.80

Tested by

no test coverage detected