aboutsummaryrefslogtreecommitdiff
path: root/aoblipplayer.h
blob: c8a8cb6d8a16b2c5e8ff0e770295ab2196b7c777 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#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