Hardware Reference
In-Depth Information
ONE OF THE most popular tasks for a Pi to carry out is that of a home theatre PC, or HTPC.
he Broadcom BCM2835 at the Pi's heart is speciically designed as a multimedia power-
house, originally developed for use in HTPCs.
he graphics portion of the BCM2835 system-on-chip (SoC) design, a Broadcom VideoCore
IV module, is capable of full-speed high-deinition video playback using the popular H.264
format. he chip is also able to play back audio iles in a variety of formats, both through the
analogue 3.5 mm audio output and digitally via the HDMI port.
he small size, low power draw and silent operation combine to make the Pi a tempting
device for home theatre enthusiasts. A variety of distributions and software packages
designed to turn the Pi into a user-friendly home theatre PC have appeared since its launch,
but you don't necessarily need to give up your existing operating system to get started.
Playing Music at the Console
If you're a developer, you will likely spend most of your time at the Pi's console. With the
majority of music playback software being aimed at desktop use, it can be a quiet experi-
enceā€”but it doesn't have to be.
he Pi supports a powerful text-based music playback package called moc (which stands for
music on console ). Unlike other tools (such as LXMusic ), moc can be installed and used even
when there is no graphical user interface (GUI) installed on the Pi.
To get started, install the moc package from your distribution's repositories. For the Debian distri-
bution, this is as simple as typing the following command at the console or in a terminal window:
sudo apt-get install moc
Some distributions already have another tool called moc , which has nothing to do with audio
playback. If you ind that installing moc doesn't give you the result you're expecting, try
substituting mocp as the package name.
TIP
If you spend a lot of time outside of the graphical user interface and working at the console,
moc is a great choice for music playback. Unlike other tools, it runs in the background, mean-
ing there's no interruption to your music if you start doing something else.
To load moc , the command is mocp rather than moc . he reason for this is that there's
another tool which uses the command moc , so a diferent name was chosen to prevent the
operating system from getting confused between the two packages.
 
Search WWH ::




Custom Search