Release - AUTOMATIC (and/or manual) AUDIO SWITCHER for different Audio Output

  Thread Rating:
  • 1 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #91
(2016-08-30 08:56)gurabli Wrote:  First of all, thanks @marv_el for creating this great add-on, your work is very much appreciated!

Yea, this is really great! Saves a lot of time here! Wheel-reinventing was the hard work here.

(2016-08-30 08:56)gurabli Wrote:  You mentioned that you would like to customize the code, what ideas do you have that we could further improve the functionality of this add-on?

Well, I already fixed a small part, the main loop (in code on Github, not in a new release). It wasn't checking the result of monitor.abortRequested (which should tell the addon to stop) but it checked this function itself - which basically returns true all the time in python. Also the .sleep could be better handled with monitor.waitForAbort(), which cancels before the timeout happens. But these are small fixes you will not feel in the gui

First of all, I'll install the bluetooth A2DP device which arrived today. Then I'll test Smile (Edit: Done and working)

I'm still in the desicion if all features should be placed in that one addon, currently I think it will be better to have multiple once. Therefore I'll mark the features and fixes I need with (this) or (another), to give you an overview where it will probably be implemented. Nevertheless, I want to integrate the addons with each other, so that they know the state of each other.

I want to:
  • (this) review code, make it object oriented and avoid duplicates (e.g. rpc-calls), make use of python built-ins (json).
  • (this) move all settings to plugin settings. Audio and video device are saved in a file as I could see.
  • (this) I respect the way the selection of audio and video device works, really intuitive. A slight improvement could be a execution action inside the settings dialog and an option to save the current device as audio/video default in the settings. This would make later switches easier.
  • (this) Test if all Playback-options I use are supported: I think of normal audio and video, and also PVR, different Addons, ...
  • probably (another): handling of power save & cec commands based on type of playback and other things (I do not need my TV turned on while watching music, even if I use a Tablet app to control kodi. But I will need the TV on if switching to other sources using a RFID-Remote. This is just an example, but I think it shows where it should head to.
  • ... more to follow.

If you gurabli or any other here have good ideas to make these things better and easier - feel free to write an 'issue' on GitHub. There I'll usually see it within some hours when I'm at home. You can also fork the project and get your hands on code, if you did something useful send a pull request and I will implement.


Sorry for the long text, this should really be a quick overview but there are so many things to say Smile

Thanks for your warm welcome (and tell Cloudflare that 'sleep with Opening and Closing Bracet' isn't bad enough to block it)
Greetings from Austria
Florian.
(This post was last modified: 2016-08-30 21:02 by LaggAt.)
find quote
Wagg Offline
Member
Posts: 84
Joined: Jan 2015
Reputation: 0
Post: #92
Nice job, but I was wondering if there was a quick way to turn passthrough on and off? My girlfriend uses Kodi but her surround headphones are connected via SPDIF. All I want to do is turn it on and off with a keypress (remote, etc). That way she can switch back and forth between speakers (audio out) and headphones (SPDIF).
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #93
(2016-09-13 00:14)Wagg Wrote:  Nice job, but I was wondering if there was a quick way to turn passthrough on and off? My girlfriend uses Kodi but her surround headphones are connected via SPDIF. All I want to do is turn it on and off with a keypress (remote, etc). That way she can switch back and forth between speakers (audio out) and headphones (SPDIF).

Hi, I did add your question here (because I seldom see this thread):
https://github.com/LaggAt/LaggAt-Kodi/issues/1

I don't have that Passthru option in my Audio setting - when is this shown?
If possible please answer on github.

Thanks,
Florian.

btw:
I did a split in two apps, a control plugin which controls an audio switcher plugin. I'm testing it on my kodi, there should be a first functional release next week.
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #94
@epicfail: Servus Smile
I'm not able to PM here, but you also wrote on github, so I'll answer there.
In short: think we will solve your problems with the new design I've in mind.
Next: see you there: https://github.com/LaggAt/LaggAt-Kodi/issues/2
find quote
gurabli Offline
Fan
Posts: 399
Joined: Sep 2012
Reputation: 1
Post: #95
Hi,
I was gone for a while, but I see LaggAt is doing a great work. Any chances to add PVR to automatic profile switching? Now pvr is not detected, it remains the same audio output. Do you think you can add this? Many thanks!

Sent from my Xperia Z3 Compact (typie typie)

HTPC 1: ASRock N3150DC-ITX, 8GB DDR3L, 64GB SSD, Ubuntu Server 16.04 LTS + Kodi v17 EGL
HTPC 2: RPi2 + HiFiBerry DIGI+, LibreElec
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #96
(2016-10-31 08:55)gurabli Wrote:  Hi,
I was gone for a while, but I see LaggAt is doing a great work. Any chances to add PVR to automatic profile switching? Now pvr is not detected, it remains the same audio output. Do you think you can add this? Many thanks!

Sent from my Xperia Z3 Compact (typie typie)

Hi, yes, that's an issue we both have. I do a lot of PVR, watching TV and listening to radio. All should be configurable in future.

Btw. don't worry, I follow this thread from time to time ... BUT if you want a quick response post an issue on GitHub.
https://github.com/LaggAt/LaggAt-Kodi/issues
This forum here doesn't allow me to PM, so I cannot answer on PM's here. So if possible I'll answer them inside this thread here.

So, let's start a weekend coding ... wish me success Smile
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #97
Hi guys, short state ... switching audio/video will work, doesn't matter if it's from PVR, Livestream or from local files. I've done basic work for the "EventProfiles" plugin, and I think it will be a great controller for so many things.

What stops me from a release is the GUI, a simple settings dialog offers me too less options, does anyone know good references for xbmcgui.WindowXML? I need to get into that much deeper.
find quote
gurabli Offline
Fan
Posts: 399
Joined: Sep 2012
Reputation: 1
Post: #98
Great work LaggAt, so I get this right that switchin audio stream now works for PVR too? I just need to use your version from Github? Or you still need to do some job with the GUI?

Great work, and again, many thanks!


Sent from my Xperia Z3 Compact (typie typie)

HTPC 1: ASRock N3150DC-ITX, 8GB DDR3L, 64GB SSD, Ubuntu Server 16.04 LTS + Kodi v17 EGL
HTPC 2: RPi2 + HiFiBerry DIGI+, LibreElec
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #99
(2016-11-16 09:49)gurabli Wrote:  Great work LaggAt, so I get this right that switchin audio stream now works for PVR too? I just need to use your version from Github? Or you still need to do some job with the GUI?

Great work, and again, many thanks!


Sent from my Xperia Z3 Compact (typie typie)
Hi, I need to do some work on the Gui which makes it possible to configure the system. If you want you can install my repository, as soon as I release it's just an upgrade to apply.

To my gui issues: I need to support an unlimited number of profiles, which isn't possible in a configuration page. Thats why I write my own Gui. There is very few documentation, I need to find out how it is done by looking at other plugins. Help is still very welcome.

Gesendet von meinem ONE A2003 mit Tapatalk

My Plugins:
EventProfiles - automatic actions on events,
AudioSwitch (started by marv_el) switching Audio Device when playing Audio/Video.
Install my repository to use my plugins: LaggAt Repository ZIP file. (How to: Install ZIP files)
find quote
LaggAt Offline
Junior Member
Posts: 9
Joined: Aug 2016
Reputation: 0
Post: #100
Yay, found my mistake ... I used the wrong extension point in the addon.xml, such a stupid error Smile
For today I'm off, Give me some evenings for a beta Version.
find quote
gurabli Offline
Fan
Posts: 399
Joined: Sep 2012
Reputation: 1
Post: #101
Of course, take your time! I am afraid that I can't help you as I don't know anything about this, I am just an advanced user. I will keep following your work and will test it once a beta version is released.
And once again, thanks!

Sent from my Xperia Z3 Compact (typie typie)

HTPC 1: ASRock N3150DC-ITX, 8GB DDR3L, 64GB SSD, Ubuntu Server 16.04 LTS + Kodi v17 EGL
HTPC 2: RPi2 + HiFiBerry DIGI+, LibreElec
find quote
Post Reply