mirror of https://github.com/godotengine/godot
Initialize pa_buffer_attr.maxlength to -1
This commit is contained in:
parent
e5498020b6
commit
b5622e9f78
|
|
@ -725,7 +725,8 @@ Error AudioDriverPulseAudio::init_input_device() {
|
|||
int input_buffer_frames = closest_power_of_2(input_latency * mix_rate / 1000);
|
||||
int input_buffer_size = input_buffer_frames * spec.channels;
|
||||
|
||||
pa_buffer_attr attr;
|
||||
pa_buffer_attr attr = {};
|
||||
attr.maxlength = (uint32_t)-1;
|
||||
attr.fragsize = input_buffer_size * sizeof(int16_t);
|
||||
|
||||
pa_rec_str = pa_stream_new(pa_ctx, "Record", &spec, &pa_rec_map);
|
||||
|
|
|
|||
Loading…
Reference in New Issue