Chiptune Project don't work on Mega?

plugged in speakers

What sort of speakers? Connecting 8ohm, or even worse, 4ohm speakers directly to an Arduino isn't a good idea.