Files
86Box/src/qt/qt_soundgain.cpp

51 lines
1010 B
C++
Raw Normal View History

2022-02-07 15:00:02 +06:00
/*
2023-01-06 15:36:05 -05:00
* 86Box A hypervisor and IBM PC system emulator that specializes in
* running old operating systems and software designed for IBM
* PC systems and compatibles from 1981 through fairly recent
* system designs based on the PCI bus.
2022-02-07 15:00:02 +06:00
*
2023-01-06 15:36:05 -05:00
* This file is part of the 86Box distribution.
2022-02-07 15:00:02 +06:00
*
2023-01-06 15:36:05 -05:00
* Sound gain dialog UI module.
2022-02-07 15:00:02 +06:00
*
*
*
2023-01-06 15:36:05 -05:00
* Authors: Cacodemon345
2022-02-07 15:00:02 +06:00
*
2023-01-06 15:36:05 -05:00
* Copyright 2021-2022 Cacodemon345
2022-02-07 15:00:02 +06:00
*/
2021-12-12 16:22:35 +06:00
#include "qt_soundgain.hpp"
#include "ui_qt_soundgain.h"
2022-11-19 08:49:04 -05:00
extern "C" {
2021-12-12 16:22:35 +06:00
#include <86box/86box.h>
#include <86box/plat.h>
#include <86box/sound.h>
}
2022-11-19 08:49:04 -05:00
SoundGain::SoundGain(QWidget *parent)
: QDialog(parent)
, ui(new Ui::SoundGain)
2021-12-12 16:22:35 +06:00
{
ui->setupUi(this);
ui->verticalSlider->setValue(sound_gain);
sound_gain_orig = sound_gain;
}
SoundGain::~SoundGain()
{
delete ui;
}
2022-11-19 08:49:04 -05:00
void
SoundGain::on_verticalSlider_valueChanged(int value)
2021-12-12 16:22:35 +06:00
{
sound_gain = value;
}
2022-11-19 08:49:04 -05:00
void
SoundGain::on_SoundGain_rejected()
2021-12-12 16:22:35 +06:00
{
sound_gain = sound_gain_orig;
}