Yes there is. You can play music for yourself and close family. That you happen to 'be in public' or 'be at work' isn't relevant.
Moreover, the interpretation of the statute, as indicated by a very long trail of case law history indicates that the boundaries for 'pubic performance' are fairly wide, at least wider than the most narrow interpretation of 'for oneself and close family' etc..