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

plasma 5.26 does not like PA_PROP_DEVICE_CLASS abstract #91

Merged
merged 1 commit into from
Feb 6, 2023

Conversation

akarl10
Copy link
Contributor

@akarl10 akarl10 commented Jan 30, 2023

according to doxygen only
"sound", "modem", "monitor", "filter"
are allowed. Use sound as this is the most appropriate

@akarl10 akarl10 marked this pull request as draft January 31, 2023 06:58
@akarl10
Copy link
Contributor Author

akarl10 commented Jan 31, 2023

actually for plasma 5.27 to work correctly it seems that we need to create "cards".
comparing to raop there is created a card with a port that then has a sink.
In this case probably we need to do the same.

I will have a look when I find some time

@akarl10 akarl10 marked this pull request as ready for review January 31, 2023 18:26
Copy link
Member

@matt335672 matt335672 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry about delay - been on other things. A few comments below, only one major.

pa_device_port_new_data_set_description(&data, "xrdp output");
pa_device_port_new_data_set_direction(&data, PA_DIRECTION_OUTPUT);
pa_device_port_new_data_set_available(&data, PA_AVAILABLE_YES);
pa_device_port_new_data_set_type(&data, PA_DEVICE_PORT_TYPE_NETWORK);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pa_device_port_new_data_set_type() was added for PA 14 (pull request here). This line fails to compile on Ubuntu 20.04 and CentOS 7. I'd suggest bracketing it with a version test like this:-

#if defined(PA_CHECK_VERSION) && PA_CHECK_VERSION(14, 0, 0)
    pa_device_port_new_data_set_type(&data, PA_DEVICE_PORT_TYPE_NETWORK);
#endif

according to doxygen only
  "sound", "modem", "monitor", "filter"
are allowed. Use sound as this is the most appropriate

also plasma-pa hides virtual devices by default.

flag them as hardware since to the user this virtual card behaves like
that. It is not some kind of filter or secondary output
@matt335672 matt335672 merged commit afd3820 into neutrinolabs:devel Feb 6, 2023
@metalefty metalefty mentioned this pull request Feb 27, 2023
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

Successfully merging this pull request may close these issues.

2 participants