In this example we study the design of a portable MP3 player that decompresses music files as it plays.
Audio players are often called MP3 players after the popular audio data format, although a number of audio compression formats have been developed and are in regular use. The earliest portable MP3 players were based on compact disc mechanisms. Modern MP3 players use either flash memory or disk drives to store music. An MP3 player performs three basic functions: audio storage, audio decompression, and user interface.
Although audio compression is computationally intensive, audio decompression is relatively lightweight. The incoming bit stream has ...