sansumbrella/MP3Trigger-for-Arduino — pull request #3 by carlfj (2012-01-18 17:04:05+00:00)
Title: Bugfix and Quiet Mode. SoftwareSerial only through modification

I fixed an endless loop bug when a track is set to loop when a track is already playing. I added Quiet Mode functionality.
With Quiet Mode I chose to not store the three input bytes, but instead parse them and call a callback function for each active input. Most of the time inputs are registered one at a time, so I wanted it to have the lowest latency, but still support simultaneous input.

There is only SoftwareSerial support through modification by changing commented out lines on both files. I have made a variant that supports both, but since it will always require the Arduino sketch to include SoftwareSerial library, the price is too high for just having the option in the regular library.
I haven't yet tested the latest implementation. It uses a class as a middleman to the Serial interfaces. I will put it up in a seperate repo when it is tested.

There seems to be another fork with NewSoftSerial support, but since it has turned into SoftwareSerial for Arduino 1.0, I don't worry about that. Furthermore I changed the WProgram.h to Arduino.h, since that is the standard for Arduino 1.0.

Regards Carl