Posts: 10,534
Joined: Oct 2011
Reputation:
640
jjd-uk
Team-Kodi Member
Posts: 10,534
2017-01-18, 15:26
(This post was last modified: 2017-01-18, 15:28 by jjd-uk.)
Windows has 2 main audio API's, these are Directsound and WASAPI.
Directsound is the main API used for desktop apps as it sends all sound to a built in Windows Audio Mixer that allows more than one sound to be heard at once, however sending sound through the mixer can compromise quality. For audio apps that need high quality there is a 2nd API called WASAPI, however in order to achieve the highest quality possible that your audio device can produce the first app to open using WASAPI takes exclusive control of the audio device, excluding of all other apps/sounds from the audio device.
If your PC is mostly Kodi usage with occassional desktop usage then stick with WASAPI, however make sure the "Keep audio device alive" and "GUI sounds" settings are turned off, thus after an idle period of no audio the exclusive control should be release and allow sound from other apps.
However is your PC is mostly desktop usage with occasional Kodi, or you use Kodi in the background for music while doing other things for example, usage then switch to the Directsound selection for your audio device within Kodi then you never have to worry about Kodi grabbing exclusive control.
Posts: 74
Joined: Feb 2016
Reputation:
0
Thanks, I am using the WASPI settings and my pc is used almost exclusively as an HTPC. I will have to stick with WASPI, that is the only setting that allows DTS audio to play, win10 alone won't play DTS and apparently the directsound setting won't either. I had installed win10 a year ago and reverted to win7 after no dts would play. If I had knew then that Kodi would enable that capability I would have stayed with win10 then.
I guess the main issue then is why I can't get the music to play without locking/crashing kodi. Immediately after I posted this I turned off the debug mode and tried to play music and it locked kodi immediately. I then immediately tried to play a music track with the windows app and it gave the message that your audio is not available because another program is using it.
That has made using kodi as my only music player not feasible at the moment, and I still need to use musicbee to be able to endlessly play music. Musicbee did sound much better than kodi and I always used it to play music, but not any more because kodi sounds so much better now, the same as musicbee.
I like to have all media playable from one media center as I use to do with msMCE. Do you see any reason why this happens in the logs? Also I'll have to check but I'm fairly certain I have all of the GUI sounds off, but I have to make sure the keep audio device alive setting is correct. I'm not sure about that one. Is that the probable reason kodi will not release it's audio hooks from my PC?
Posts: 74
Joined: Feb 2016
Reputation:
0
I will typically just press the party mode, which would make a large playlist. You're seeing emby errors? I know that is one of the questions I'm asked when I setup my emby addon is whether or not to use the emby music library in kodi or not. I may be able to turn that off if that is the reason. I'll check on that, typically emby makes the artwork better for any library that it controls and so I think it would be good to have it work correctly with kodi. Maybe I should post that to them and see if there is something that they need to do to make it work correctly in v17; because I like the whole package I'm using and it would be good to have it all function together as it did with v16.
Posts: 74
Joined: Feb 2016
Reputation:
0
Hello Dave,
I'll will do that. I'll look for the music support forum, actually wasn't aware of that thanks.
Posts: 74
Joined: Feb 2016
Reputation:
0
After v17 rc4 came out I did as clean an install of kodi as possible and did not install the emby addon at all. After about a week I can't figure if there really is any point in it being a part of kodi. It's a very nice and useful app but as far as being in kodi the only point to it I believe is the artwork is synced between the two. It became a useful addon to me years ago as a movie library for msMediaCenter (was called Media Browse or M.B. for short, emby now). There it had a much nicer movie library than the native version, but my main reason to use it was it allowed .iso files to be automatically mounted and played right from the library. After switching to kodi a year ago it was available as an addon to kodi so I installed it. It uses the Nextpvr media center as it's pvr backend the same as kodi so any use of emby will sync with kodi through their mutual pvr backend so other than artwork syncing there is not a lot of use for it in kodi. Just a fyi as why this is app used. It has now become a streaming media center that I can now play live tv, recordedtv, movies; basically like having kodi on my phone or on any web browser and is definitely and integral part of my current htpc and one of the main reasons why my current media center setup is much nicer than my previous stand alone msMediaCenter based htpc.