
This is merely a reimplementation of Gameboyprinter's changes on the main thing. The only thing that's different from that one is that the options menu has had its audio device removed, too.
32 lines
501 B
C++
32 lines
501 B
C++
#ifndef AOBLIPPLAYER_H
|
|
#define AOBLIPPLAYER_H
|
|
|
|
#include "aoapplication.h"
|
|
|
|
#include <QWidget>
|
|
#include <string.h>
|
|
#include <QDebug>
|
|
#include <QSoundEffect>
|
|
|
|
class AOBlipPlayer
|
|
{
|
|
public:
|
|
AOBlipPlayer(QWidget *parent, AOApplication *p_ao_app);
|
|
~AOBlipPlayer();
|
|
|
|
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;
|
|
QSoundEffect *m_sfxplayer;
|
|
|
|
int m_volume;
|
|
};
|
|
|
|
#endif // AOBLIPPLAYER_H
|