aboutsummaryrefslogtreecommitdiff
path: root/aomusicplayer.h
blob: 7716ea9e21a045ec7226c4c2d907bfd0b4fdb977 (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
#ifndef AOMUSICPLAYER_H
#define AOMUSICPLAYER_H

#include "aoapplication.h"

#include <QWidget>
#include <string.h>
#include <QDebug>
#include <QMediaPlayer>

class AOMusicPlayer
{
public:
  AOMusicPlayer(QWidget *parent, AOApplication *p_ao_app);
  ~AOMusicPlayer();

  void play(QString p_song);
  void set_volume(int p_value);

private:
  QWidget *m_parent;
  AOApplication *ao_app;
  QMediaPlayer *m_player;

  int m_volume = 0;
};

#endif // AOMUSICPLAYER_H