Handling PCM devicesThe software processes for playing back and capturing audio data are similar. This section describes the common steps Related linksPlaying and Capturing Audio Data This chapter describes the major steps required to play back and capture (i.e. record) sound data. Opening your PCM device The first thing you need to do in order to playback or capture sound is open a connection to a PCM playback or capture device. Configuring the PCM device The next step in playing back or capturing the sound stream is to inform the device of the format of the data that you're about to send it or want to receive from it. Controlling voice conversion The libasound library supports devices with up to 8 voices.Preparing the PCM subchannel The next step in playing back or capturing the sound stream is to prepare the allocated subchannel to run.Closing the PCM subchannel When you've finished playing back or capturing audio data, you can close the subchannel by calling snd_pcm_close().