atrooney-online-2/aomusicplayer.h
Cerapter fe955d6923 Removed the dependency on bass.dll.
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.
2018-09-04 17:32:20 +02:00

29 lines
463 B
C++

#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