The real reason that the music stops is the lack of the possibility to play sounds from more than one source at a time. The camera application have to playback the shutter sound when your device is not in the silent mode (its a law in some countries) - the application can only do this when every other sound playback stops. .