Magnetic tape was first invented for recording sound by Fritz Pfleumer in 1928 in Germany . Magnetic tape was invented for recording sound by Fritz Pfleumer in 1928 in Germany , based on the invention of magnetic wire recording by Valdemar Poulsen in 1898 .