I was used to LIRC connecting the photodiode on serial port, but these days serial port is rare and using an USB/Serial adapter boring.
Then this guy got a crazy simple idea to analyze remote control protocols. He extended the idea of software oscilloscope (using audio input) to infrared analyzer.
He implemented it on Delphi and release the source code:
Kudos for you Ondřej Staněk!