Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

crash when set channels = 6 #54

Open
jat001 opened this issue Apr 3, 2021 · 0 comments
Open

crash when set channels = 6 #54

jat001 opened this issue Apr 3, 2021 · 0 comments

Comments

@jat001
Copy link

jat001 commented Apr 3, 2021

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant