Audio

This example show how to use the Linux API to control audio input and output.

Copy the app to Development board from“/Examples/audio”. The headset plugged into the audio output port J8, the audio input to the audio input port J9, This program opens an audio interface for capture, configures it for stereo, 16 bit, 44.1kHz, interleaved conventional read/write access. Then its reads a chunk of random data from it, and exits. It isn't meant to be a real program. Note that it is not possible to use one pcm handle for both playback and capture. So you have to configure two handles if you want to access the PCM device in both directions.

    # ./audio
    snd_pcm_readi successful