pulseaudio-module-xrdp icon indicating copy to clipboard operation
pulseaudio-module-xrdp copied to clipboard

crash when set channels = 6

Open jat001 opened this issue 3 years ago • 0 comments

https://github.com/neutrinolabs/pulseaudio-module-xrdp/blob/devel/src/module-xrdp-sink.c#L363

pulseaudio has an assertion pa_frame_aligned on function pa_sink_render

https://github.com/pulseaudio/pulseaudio/blob/master/src/pulsecore/sink.c#L1234

it restricts request_bytes must be divisible by channels number * 1, 2, 3 or 4

https://github.com/pulseaudio/pulseaudio/blob/master/src/pulsecore/sample-util.c#L121 https://github.com/pulseaudio/pulseaudio/blob/master/src/pulse/sample.c#L69

on surround sound, u->sink->thread_info.max_request is always greater than 16 * 1024. so request_bytes will be 16384. it can not to be divisible by 6.

jat001 avatar Apr 03 '21 01:04 jat001