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