
Due to a countless number of changes made to the core that were not fully understood, tested, or documented, it was decided to roll everything back to the last known stable version (2.6.2). Changes dropped include: - Witness needed - Shake - Frame SFX - Multiple custom objections - Multithreaded thumbnail generation - Looping - Various translation additions - "Mirror IC" - Color in IC log - An invocation of clang-format Next time, work together and split your big fork into independently testable feature branches.
41 lines
637 B
C++
41 lines
637 B
C++
#ifndef AOBLIPPLAYER_H
|
|
#define AOBLIPPLAYER_H
|
|
|
|
#if defined(BASSAUDIO)
|
|
#include "bass.h"
|
|
#elif defined(QTAUDIO)
|
|
#include <QSoundEffect>
|
|
#endif
|
|
|
|
#include "aoapplication.h"
|
|
|
|
#include <QWidget>
|
|
#include <string.h>
|
|
#include <QDebug>
|
|
|
|
|
|
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);
|
|
|
|
int m_cycle = 0;
|
|
|
|
private:
|
|
QWidget *m_parent;
|
|
AOApplication *ao_app;
|
|
|
|
int m_volume;
|
|
#if defined(BASSAUDIO)
|
|
HSTREAM m_stream_list[5];
|
|
#elif defined(QTAUDIO)
|
|
QSoundEffect m_blips;
|
|
#endif
|
|
};
|
|
|
|
#endif // AOBLIPPLAYER_H
|