Is it possible to format or sync music in Impress presentation to play to the end?

I’m trying to add music to a presentation, but the music runs out before the end of the show. Is there a way to automate this setting to last to the end, or do I just have to play around with slide timing options? Thanks.

I’m using Windows 7 Home Premium, SP1, 64-bit, with 8 GB RAM.