# ADI service

The application accesses multimedia play and record functions through the ADI service. It can use adiPlayMMFromMemory, adiPlayMMAsync, adiRecordMMToMemory, and adiRecordMMAsync for both audio and video media. These functions allow the application to play and record:

- Audio and video data directly to or from the RTP endpoints respectively (pass-through configuration). In this configuration, the media format at the host for all functions is NMS packetized format.

- Video data directly to or from the RTP endpoints while transcoding the audio data (audio transcoding configuration). In this configuration, the audio media format at the host for all functions is raw audio bit streams, while the video media format is NMS packetized format.

For more information, see Video enhancements to the ADI service.

Note: In the Video Messaging Server Interface header files, pass-through channels are referred to as native channels.

If audio transcoding is required, the application uses one of the ADI service multimedia play/record functions to play and record to an existing Fusion channel. In this case, the multimedia ADI function specifies the encoding type at the host while an MSPP service function specifies the audio encoding type for the Fusion channel that terminates the IP network. The ADI service and the MSPP service use DSP resources on the board as shown in the following illustration.