
* Suppress application volume when alt-tabbed Add a "suppress_audio" slider setting, 50% by default, which decides how much audio remains when the client is not in focus Add a "muted" setting for blip, music, and sfx players Add update_audio_volume func * change "suppress" to "how much audio is suppressed" instead of "how much audio remains" * Fix last commit just flipping the behavior and being ultra wacky * Fix evidence present sound ignoring audio suppression settings Co-authored-by: stonedDiscord <Tukz@gmx.de> Co-authored-by: Salanto <62221668+Salanto@users.noreply.github.com>
38 lines
626 B
C++
38 lines
626 B
C++
#ifndef AOBLIPPLAYER_H
|
|
#define AOBLIPPLAYER_H
|
|
|
|
#include "bass.h"
|
|
#include "bassopus.h"
|
|
|
|
#include "aoapplication.h"
|
|
|
|
#include <QDebug>
|
|
#include <QElapsedTimer>
|
|
#include <QWidget>
|
|
#include <string.h>
|
|
|
|
class AOBlipPlayer {
|
|
public:
|
|
AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app);
|
|
|
|
void set_blips(QString p_sfx);
|
|
void blip_tick();
|
|
void set_volume(int p_volume);
|
|
void set_muted(bool toggle);
|
|
|
|
int m_cycle = 0;
|
|
|
|
private:
|
|
QWidget *m_parent;
|
|
AOApplication *ao_app;
|
|
qreal m_volume;
|
|
|
|
bool m_muted = false;
|
|
|
|
void set_volume_internal(qreal p_volume);
|
|
|
|
HSTREAM m_stream_list[5];
|
|
};
|
|
|
|
#endif // AOBLIPPLAYER_H
|