DhrBaksteen / ArduinoOPL2

Arduino library for use with the OPL2 board (YM3812) and OPL3Duo (YMF262)
MIT License
198 stars 39 forks source link

SerialIface.ino: display estimated delay while playing #22

Closed vincentbernat closed 4 years ago

vincentbernat commented 6 years ago

In play.py, we compare the current elapsed real time with the elapsed play time to estimate a delay, display it and display the number of underflows we get from it. Here is a notably difficult example:

http://vgmrips.net/packs/pack/star-wars-x-wing-ibm-pc-at#02-opening-crawl

Despite a buffer of 1KiB, we still get many underflows, with delays up to 1.5s.

vincentbernat commented 6 years ago

The delay could also be used to sleep on close. Otherwise, I get the impression that closing the serial port resets the arduino.

ghost commented 6 years ago

Thanks for the improvements and fixes. I also found that closing the port reset the arduino.

vincentbernat commented 6 years ago

I am pushing another PR for this close problem.

vincentbernat commented 4 years ago

This has been superseded by SerialPassthrough.ino. Not possible to estimate the delay anymore.