runtime: CMake-ify gx

This commit is contained in:
Michael Fabian 'Xaymar' Dirks
2019-01-18 17:03:37 +01:00
parent 28598fae6b
commit a16218e1d5
74 changed files with 6493 additions and 5286 deletions
+38
View File
@@ -0,0 +1,38 @@
#ifndef GXSOUND_H
#define GXSOUND_H
#include "gxchannel.hpp"
class gxAudio;
struct FSOUND_SAMPLE;
class gxSound {
public:
gxAudio* audio;
gxSound(gxAudio* audio, FSOUND_SAMPLE* sample);
~gxSound();
private:
bool defs_valid;
int def_freq, def_vol, def_pan, def_pri;
FSOUND_SAMPLE* sample;
float pos[3], vel[3];
void setDefaults();
/***** GX INTERFACE *****/
public:
//actions
gxChannel* play();
gxChannel* play3d(const float pos[3], const float vel[3]);
//modifiers
void setLoop(bool loop);
void setPitch(int hertz);
void setVolume(float volume);
void setPan(float pan);
};
#endif