예제 #1
0
void MusicPlayer::setEnaleEffect(bool enable)
{
    if(enable == false)
    {
        setEqEffect(MIntList()<< 0<< 0<< 0<< 0<< 0<< 0<< 0<< 0<< 0<< 0<< 0);
    }
}
void MusicEqualizerDialog::emitParameter()
{
    emit setEqEffect(MIntList() << ui->bwVerticalSlider->value() << ui->verticalSlider1->value()
                     << ui->verticalSlider2->value() << ui->verticalSlider3->value()
                     << ui->verticalSlider4->value() << ui->verticalSlider5->value()
                     << ui->verticalSlider6->value() << ui->verticalSlider7->value()
                     << ui->verticalSlider8->value() << ui->verticalSlider9->value()
                     << ui->verticalSlider10->value());
}
예제 #3
0
void MusicPlayer::setMusicEnhancedCase()
{
    switch(m_musicEnhanced)
    {
        case EnhancedOff:
            setEqEffect(MIntList()<<  0<<  0<<  0<<  0<<  0<<  0<<  0<<  0<<  0<<  0<<  0);
            break;
        case MusicVocal:
            setEqEffect(MIntList()<<  0<<  0<<  4<<  1<< -5<< -1<<  2<< -2<< -4<< -4<<  0);
            break;
        case MusicNICAM:
            setEqEffect(MIntList()<<  6<<-12<<-12<< -9<< -6<< -3<<-12<< -9<< -6<< -3<<-12);
            break;
        case MusicSubwoofer:
            setEqEffect(MIntList()<<  6<<  6<<-10<<-10<<  0<<  0<< -3<< -5<< -7<< -9<<-11);
            break;
        default:
            break;
    }
}