Пример #1
0
void KNMusicStandardBackend::previewReset()
{
    //Stop the smart volume.
    smartVolumeOff();
    //Reset the thread.
    threadReset(m_preview);
}
Пример #2
0
void KNMusicStandardBackend::previewStop()
{
    //Stop the smart volume.
    smartVolumeOff();
    //Stop the preview thread.
    threadStop(m_preview);
}
Пример #3
0
void KNMusicStandardBackend::resetPreviewPlayer()
{
    //Set the smart volume off first.
    smartVolumeOff();
    //Clear the thread.
    m_preview->clear();
}
Пример #4
0
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();
    }
}
Пример #5
0
void KNMusicStandardBackend::pausePreview()
{
    smartVolumeOff();
    //Stop the preview
    m_preview->pause();
}
Пример #6
0
void KNMusicStandardBackend::stopPreview()
{
    smartVolumeOff();
    //Stop the preview
    m_preview->stop();
}