-
Notifications
You must be signed in to change notification settings - Fork 57
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
add basic pulseaudio support #221
base: master
Are you sure you want to change the base?
Conversation
pulseaudio may have to resample depending on the content and the default resample method may be too heavy. It might be worth testing different resample methods. EDIT:
You can choose different resample methods with the following:
and
Then restart pulseaudio and restart kodi (kodi doesn't like when pulse is pulled out from under). Or just reboot.
It looks like the default is You should also check in kodi the option for
and lastly you can also try setting the following options
but it's likely you may be limited by what your bluetooth device is able to use
|
Sorry for the late reply. Works pretty good now! Thanks a lot for your awesome explanation for my slightly off-topic problem! The following did solve my dropout issue:
|
|
||
rebuildList = 0 | ||
self.dbusDevices = self.get_sinks() | ||
for dbusDevice in self.dbusDevices: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is the purpose if this loop? From the looks of it this block is executed once if self.dbusDevices
is not empty so it can be replaced with if self.dbusDevices:
condition. Or there is something I'm missing? I saw the same code in bluetooth module and wonder why it's implemented this way.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm not really sure what the question is. The loop iterates over a list of items returned from get_sinks. Then each item can be processed and added to the gui.
Is there a better way?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The thing is that this specific loop does not iterate as such. It breaks unconditionally after the first iteration. So I'm just curious if this has any specific meaning.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, I didn't look at the rest of the code, yes an if is probably fine here.
This is a resurrection of some work I did 4 years ago. I always wanted to implement some sort of
pavucontrol
in Kodi and this is an initial implementation of that.Features:
Pretty awesome that this can be done with 0 deletions 😮
Some screenshots: