I've checked you plugin code from SVN and here are issues:
- you are trying to call DoGetInfrared function from dll (IgorPLug.dll) which is indeed girder plugin. correct dll would be IgorUSB.dll that comes with driver and is placed in Windows\ folder
- IgorUSB.dll is written in Delphi and for some reason it doesn't work with C#... throws exceptions all the time
- DoGetInfrared function returns timediagram which needs to be converted to code. It is luck to get two exact time diagrams of one key pressed in a row.
Since I have source of IgorUSB.dll I made little utility in Visual C# that reads IR codes and it doesn't need any DLL... it talks directly to driver!
Porting from Delphi (or C/C++) to C# is really pain for me because this is my firstencounter with C#
So, when I finish that utility I will merge my code with your plugin and that should be fine.
If you want any help let me know. I'm still here to help if I can.
Do you have any documentation for the IgorUSB.dll file?
I would like to see exactly how it does the timecode information. I've already got C# code written that can get detect the IR protocol and get the codes from MCE remote time code information for RC5, RC6, RCA, Sony, Sharp, JVC and NEC protocols. So maybe I can save you from porting yours?
Timecode is array of pulses/spaces in 85.3us steps. Documentation says that the last element of timecode array is SPACE but from my experience (when timecode.lenght is odd) that is not true. First element is aways PULSE.
Problem is that I use IgorUSB with 90s2323 uC that has max. timecode length limted to 36. That should be enough for RC5,6, SONY... but not for NEC protocol (AFAIK)... But NEC code can be extracted because we have LAST 36 timecodes.
Since time resolution is 85.3us some time margins must be used.
Currently, I have finished RC5 decoding only and trying to do SONY/NEC(partial).
I would really like to see IR protocol detection routines because I am having problems with it. My detection algo is pretty primitive: if there are long pulses and long spaces in timecode then it is RC5, if there are only long pulses it is SONY and if only long spaces it is NEC
Another issue is key repeating... but later about that
The MCE device uses 50usec timing resolution. I convert the raw timing into useconds and then run my detection algorithms over that. So I think we could probably just use my code to do the ir decoding ...
If you want to make the changes to get the code that is in the SVN to work with the right Dll then I could tack on my ir decoding source and we'd be on a winner ...
My ir decoding source is still a work in progress. There are not enough comments and it is a bit of a mess. I'm hoping to clean it up this week and include it the next version of some of my plugins.
I can send you a copy, but you'd need to give me some time to clean it up.
Well, I need to clean up my code, too.... and familiarize with C# better. It is real miracle that my app compiles without errors and warnings while using kernel32 calls to driver
When I finish my work I'll send you source and we'll see what next.
Sorry, it's my fault -- I did not notice that you are using MP2. :(
MP1 has a separate configuration utility, similar to "TV Server Config". I have tried MP2 only a couple of times, and have never used it seriously. I don't know what MP2 supports with regard to adjusting audio delay, but I do know that all of the adjustments of...
Sorry, it's my fault -- I did not notice that you are using MP2. :(
MP1 has a separate configuration utility, similar to "TV...
Hi. I recently upgraded my home cinema AVR which also meant changed from sending audio from my HTPC as 5.1 using optical to 7.1...
I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The Latest Media Handler plugin seems to be working as expected. I've had no lock-ups.
I do not know why this xml was in my theme folders, it must have sneaked in some time ago (years?). I simply removed the file. The...
Before you create this bug report:
Make sure that your system (windows, codecs and drivers) is up to date, matching the...
Interesting. :coffee:
I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films that have deafening sound effects and music, combined with inaudible dialogue. I have never noticed the problem that you have described, but I also use the EVR renderer, and not the Madvr renderer. So...
Interesting. :coffee:
I always have DVB subtitles enabled in "MP Config", but I actually switch on subtitles only for those films...
Every so often, when I switch to a TV channel, my MP client stops accepting user inputs, either from the remote or keyboard/mouse...
Thanks for explaining. I found a passing reference to this here:
https://www.team-mediaportal.com/wiki/display/MediaPortal1/HID%20Profiles
which I had overlooked in the past. I would find it logical for a created custom profile to be automatically activated, but until that happens, I will try to create a wiki page for the current...
Thanks for explaining. I found a passing reference to this here...
I have used custom actions in the "Mapping" section of "HID" since moving to a FLIRC as a remote receiver a couple of years ago...