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

Method onSeek

examples/voip/Server.cpp:108–111  ·  view source on GitHub ↗

/////////////////////////////////////////////////////// /see SoundStream::OnSeek ///////////////////////////////////////////////////////

Source from the content-addressed store, hash-verified

106 ///
107 ////////////////////////////////////////////////////////////
108 void onSeek(sf::Time timeOffset) override
109 {
110 m_offset = static_cast<std::size_t>(timeOffset.asMilliseconds()) * getSampleRate() * getChannelCount() / 1000;
111 }
112
113 ////////////////////////////////////////////////////////////
114 /// Get audio data from the client until playback is stopped

Callers 1

drmp3__on_seekFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected