What I mean by this: suppose the background music for fighting an enemy is being played. But as soon as the character loses all his lives, the player gets a game over which means a game over music should be playing. I am going to code this in Java.
So in a programming sense, am I better off
1) using the same object reference that plays the background music. Then use the flush method on the object and then close method on the object. Play new gameover music when gameover happens.
2) use the same object reference that plays the background music. Somehow figure out a new way to overwrite the background music and play the gameover music using that same object reference. I think this can save me essentially by reusing the same object instead of creating a new object for the gameover music.
I need advice.