void KNMusicStandardBackend::previewReset() { //Stop the smart volume. smartVolumeOff(); //Reset the thread. threadReset(m_preview); }
void KNMusicStandardBackend::previewStop() { //Stop the smart volume. smartVolumeOff(); //Stop the preview thread. threadStop(m_preview); }
void KNMusicStandardBackend::resetPreviewPlayer() { //Set the smart volume off first. smartVolumeOff(); //Clear the thread. m_preview->clear(); }
inline void KNMusicStandardBackend::synchronizeThreadVolume(const int &volume) { //Check whether the preview smart volume is enabled. bool smartVolumeEnabled=(m_originalVolume!=-1); //If the smart volume is enabled, disabled it temporarily. if(smartVolumeEnabled) { //Turn off the smart volume. smartVolumeOff(); } //Change the global volume size. setGlobalVolume(volume); //If the smart volume is enabled before, enabled it again. if(smartVolumeEnabled) { //Turn on the smart volume. smartVolumeOn(); } }
void KNMusicStandardBackend::pausePreview() { smartVolumeOff(); //Stop the preview m_preview->pause(); }
void KNMusicStandardBackend::stopPreview() { smartVolumeOff(); //Stop the preview m_preview->stop(); }