atrooney-online-2/aoblipplayer.h
2018-08-29 14:57:58 -05:00

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