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

Method updateSampleRate

plugins/GigPlayer/GigPlayer.cpp:902–906  ·  view source on GitHub ↗

Since the sample rate changes when we start an export, clear all the currently-playing notes when we get this signal. Then, the export won't include leftover notes that were playing in the program.

Source from the content-addressed store, hash-verified

900// currently-playing notes when we get this signal. Then, the export won't
901// include leftover notes that were playing in the program.
902void GigInstrument::updateSampleRate()
903{
904 QMutexLocker locker( &m_notesMutex );
905 m_notes.clear();
906}
907
908
909

Callers

nothing calls this directly

Calls 1

clearMethod · 0.45

Tested by

no test coverage detected