OOP 🏪
This commit is contained in:
parent
4700902551
commit
49be444d74
@ -22,7 +22,6 @@ public:
|
|||||||
void set_blips(QString p_sfx);
|
void set_blips(QString p_sfx);
|
||||||
void blip_tick();
|
void blip_tick();
|
||||||
void set_volume(qreal p_volume);
|
void set_volume(qreal p_volume);
|
||||||
void set_volume_internal(qreal p_volume);
|
|
||||||
|
|
||||||
int m_cycle = 0;
|
int m_cycle = 0;
|
||||||
|
|
||||||
@ -31,6 +30,8 @@ private:
|
|||||||
AOApplication *ao_app;
|
AOApplication *ao_app;
|
||||||
qreal m_volume;
|
qreal m_volume;
|
||||||
|
|
||||||
|
void set_volume_internal(qreal p_volume);
|
||||||
|
|
||||||
#if defined(BASSAUDIO)
|
#if defined(BASSAUDIO)
|
||||||
HSTREAM m_stream_list[5];
|
HSTREAM m_stream_list[5];
|
||||||
#elif defined(QTAUDIO)
|
#elif defined(QTAUDIO)
|
||||||
|
@ -21,13 +21,14 @@ public:
|
|||||||
void play(QString p_sfx, QString p_char = "", QString shout = "");
|
void play(QString p_sfx, QString p_char = "", QString shout = "");
|
||||||
void stop();
|
void stop();
|
||||||
void set_volume(qreal p_volume);
|
void set_volume(qreal p_volume);
|
||||||
void set_volume_internal(qreal p_volume);
|
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QWidget *m_parent;
|
QWidget *m_parent;
|
||||||
AOApplication *ao_app;
|
AOApplication *ao_app;
|
||||||
qreal m_volume = 0;
|
qreal m_volume = 0;
|
||||||
|
|
||||||
|
void set_volume_internal(qreal p_volume);
|
||||||
|
|
||||||
#if defined(BASSAUDIO)
|
#if defined(BASSAUDIO)
|
||||||
HSTREAM m_stream;
|
HSTREAM m_stream;
|
||||||
#elif defined(QTAUDIO)
|
#elif defined(QTAUDIO)
|
||||||
|
@ -126,7 +126,12 @@ void AOSfxPlayer::stop()
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void AOSfxPlayer::set_volume(int p_value)
|
void AOSfxPlayer::set_volume(qreal p_value)
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
void AOSfxPlayer::set_volume_internal(qreal p_value)
|
||||||
{
|
{
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user