camera_is_audiocodec_supported()

Updated: April 19, 2023

Verify whether a given audio codec is supported

Synopsis:

#include <camera/camera_api.h>
bool camera_is_audiocodec_supported(camera_handle_t handle,
                                    camera_audiocodec_t codec)

Arguments:

handle
The handle returned by a call to the camera_open() function.
codec
The audio codec to verify (see camera_audiocodec_t).

Library:

libcamapi

Description:

Use this function to determine if a given audio codec is supported on the device.

Returns:

true when the specified audio codec is supported, otherwise false.