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:
3
sound.h
3
sound.h
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user