16
0
mirror of https://github.com/MaSzyna-EU07/maszyna.git synced 2026-07-22 17:29:18 +02:00

add sound gain and pitch compatibility modes

This commit is contained in:
milek7
2017-08-19 11:27:11 +02:00
parent 6d592815c0
commit eaddd4b91a
4 changed files with 53 additions and 2 deletions

View File

@@ -25,11 +25,13 @@ class sound_buffer
ALuint id;
uint32_t refcount;
std::chrono::time_point<std::chrono::steady_clock> last_unref;
int samplerate;
public:
sound_buffer(std::string &file);
~sound_buffer();
int get_samplerate();
ALuint get_id();
void ref();
void unref();
@@ -47,6 +49,7 @@ protected:
float max_dist;
bool spatial;
glm::vec3 pos;
int samplerate;
ALuint id;
sound();