2015-08-08, 10:41
(2015-08-07, 23:56)DaveBlake Wrote: From a user perspective this project seems to work fine.
In your particular case it may work ok as long it stays in the happy path, that is i.e. no special error handling is required. From an architectural point of view, this code is a disaster. If Kodi were a building and we added this code, I promise you would stay away from that building as far as you can. Consider a tall building with 10 floors in the basement. Would you ever dare to create an 11th floor where the entire building puts its load on? Obviously not, right. If you were able to visualise this code here, you would see this architectural disaster. It just duplicates the entire audio engine and the interface to players.
Integrating such a code which violates almost every rule in software development would make Kodi unmaintainable. Do you want to see the project die in favour of a quick win of a single feature? This thread is really dead end. If someone want to implement this feature she/he needs to go back to drawing board and start from scratch.