MCPcopy Create free account
hub / github.com/LMMS/lmms / updateSampleRate

Method updateSampleRate

src/core/VstSyncController.cpp:182–189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

180
181
182void VstSyncController::updateSampleRate()
183{
184 m_syncData->m_sampleRate = Engine::mixer()->processingSampleRate();
185
186#ifdef VST_SNC_LATENCY
187 m_syncData->m_latency = m_syncData->m_bufferSize * m_syncData->m_bpm / ( (float) m_syncData->m_sampleRate * 60 );
188#endif
189}
190
191
192

Callers

nothing calls this directly

Calls 2

mixerFunction · 0.85
processingSampleRateMethod · 0.80

Tested by

no test coverage detected