RtAudio: Restore previous (incorrect but safer) buffer size
See #10683 for a potential better fix, but this close to the 2.1.4 release I am taking the safe route.
This commit is contained in:
parent
40a778a709
commit
cf80fbc95c
1 changed files with 1 additions and 1 deletions
|
@ -115,7 +115,7 @@ Error AudioDriverRtAudio::init() {
|
|||
|
||||
int latency = GLOBAL_DEF("audio/output_latency", 25);
|
||||
// calculate desired buffer_size, taking the desired numberOfBuffers into account (latency depends on numberOfBuffers*buffer_size)
|
||||
unsigned int buffer_size = closest_power_of_2(latency * mix_rate / 1000 / target_number_of_buffers);
|
||||
unsigned int buffer_size = next_power_of_2(latency * mix_rate / 1000 / target_number_of_buffers);
|
||||
|
||||
if (OS::get_singleton()->is_stdout_verbose()) {
|
||||
print_line("audio buffer size: " + itos(buffer_size));
|
||||
|
|
Loading…
Reference in a new issue