2.2.7
This commit is contained in:
parent
74d14ecaa6
commit
637f1c1132
@ -1,5 +1,9 @@
|
|||||||
# Changelog
|
# Changelog
|
||||||
|
|
||||||
|
**2.2.7**
|
||||||
|
* Fix Crash When OpenAL Is Unavailable
|
||||||
|
* Fix Command Input In Server
|
||||||
|
|
||||||
**2.2.5**
|
**2.2.5**
|
||||||
* Fix Bug In Texture Scaling Code
|
* Fix Bug In Texture Scaling Code
|
||||||
|
|
||||||
|
BIN
images/start.png
BIN
images/start.png
Binary file not shown.
Before Width: | Height: | Size: 31 KiB After Width: | Height: | Size: 31 KiB |
@ -25,6 +25,8 @@ static std::vector<ALuint> &get_sources() {
|
|||||||
|
|
||||||
// Update Listener
|
// Update Listener
|
||||||
void media_audio_update(float volume, float x, float y, float z, float yaw) {
|
void media_audio_update(float volume, float x, float y, float z, float yaw) {
|
||||||
|
// Check
|
||||||
|
if (_media_audio_is_loaded()) {
|
||||||
// Update Listener Volume
|
// Update Listener Volume
|
||||||
alListenerf(AL_GAIN, volume);
|
alListenerf(AL_GAIN, volume);
|
||||||
AL_ERROR_CHECK();
|
AL_ERROR_CHECK();
|
||||||
@ -67,9 +69,12 @@ void media_audio_update(float volume, float x, float y, float z, float yaw) {
|
|||||||
++it;
|
++it;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void media_audio_play(const char *source, const char *name, float x, float y, float z, float pitch, float volume, int is_ui) {
|
void media_audio_play(const char *source, const char *name, float x, float y, float z, float pitch, float volume, int is_ui) {
|
||||||
|
// Check
|
||||||
|
if (_media_audio_is_loaded()) {
|
||||||
// Load Sound
|
// Load Sound
|
||||||
ALuint buffer = _media_audio_get_buffer(source, name);
|
ALuint buffer = _media_audio_get_buffer(source, name);
|
||||||
if (volume > 0.0f && buffer) {
|
if (volume > 0.0f && buffer) {
|
||||||
@ -111,4 +116,5 @@ void media_audio_play(const char *source, const char *name, float x, float y, fl
|
|||||||
AL_ERROR_CHECK();
|
AL_ERROR_CHECK();
|
||||||
get_sources().push_back(al_source);
|
get_sources().push_back(al_source);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
@ -292,7 +292,6 @@ static void *read_stdin_thread(__attribute__((unused)) void *data) {
|
|||||||
stdin_buffer = strdup("");
|
stdin_buffer = strdup("");
|
||||||
}
|
}
|
||||||
stdin_buffer_complete = true;
|
stdin_buffer_complete = true;
|
||||||
break;
|
|
||||||
} else {
|
} else {
|
||||||
string_append((char **) &stdin_buffer, "%c", (char) x);
|
string_append((char **) &stdin_buffer, "%c", (char) x);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user