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

Method togglePause

src/core/Song.cpp:645–661  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

643
644
645void Song::togglePause()
646{
647 if( m_paused == true )
648 {
649 m_playing = true;
650 m_paused = false;
651 }
652 else
653 {
654 m_playing = false;
655 m_paused = true;
656 }
657
658 m_vstSyncController.setPlaybackState( m_playing );
659
660 emit playbackStateChanged();
661}
662
663
664

Callers 5

playMethod · 0.80
playMethod · 0.80
playMethod · 0.80
playMethod · 0.80
playMethod · 0.80

Calls 1

setPlaybackStateMethod · 0.80

Tested by

no test coverage detected