Skip to content

Commit

Permalink
Make audio buffer size configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
fire committed Jul 27, 2021
1 parent 8ff29d1 commit 9fcb301
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion servers/audio_server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -943,7 +943,7 @@ void AudioServer::init() {
channel_disable_threshold_db = GLOBAL_DEF_RST("audio/buses/channel_disable_threshold_db", -60.0);
channel_disable_frames = float(GLOBAL_DEF_RST("audio/buses/channel_disable_time", 2.0)) * get_mix_rate();
ProjectSettings::get_singleton()->set_custom_property_info("audio/buses/channel_disable_time", PropertyInfo(Variant::FLOAT, "audio/buses/channel_disable_time", PROPERTY_HINT_RANGE, "0,5,0.01,or_greater"));
buffer_size = 1024; //hardcoded for now
buffer_size = GLOBAL_DEF_RST("audio/mix_buffer_size", 1024);

init_channels_and_buffers();

Expand Down

0 comments on commit 9fcb301

Please sign in to comment.