After years as the unrivaled king of the digital-media world, the venerable MP3 music format is losing ground to rival technologies from Microsoft and Apple Computer.