The MM chip (VS1053) wants to be fed data constantly so that it keeps the music playing. You can take small pauses to do stuff in between playing, and for real-time sensors like IR receivers, you'll have to not-use interrupt based playing and instead pause to read.
Text editor powered by tinymce.