* @see player_set_media_packet_audio_frame_decoded_cb()
*/
typedef enum {
- PLAYER_AUDIO_EXTRACT_DEFAULT = 0x00, /**< Sync with the playback clock and multichannel audio stream */
- PLAYER_AUDIO_EXTRACT_NO_SYNC_WITH_CLOCK = 0x01, /**< No sync with the playback clock */
- PLAYER_AUDIO_EXTRACT_DEINTERLEAVE = 0x02, /**< Splits one interleaved multichannel audio stream into many mono audio streams */
- PLAYER_AUDIO_EXTRACT_NO_SYNC_AND_DEINTERLEAVE = 0x03, /**< No sync with clock and splits into mono streams */
+ PLAYER_AUDIO_EXTRACT_DEFAULT = 0x00, /**< Synchronized multichannel audio stream with the playback clock */
+ PLAYER_AUDIO_EXTRACT_NO_SYNC_WITH_CLOCK = 0x01, /**< No synchronized multichannel audio stream with the playback clock */
+ PLAYER_AUDIO_EXTRACT_DEINTERLEAVE = 0x02, /**< Synchronized mono audio stream with the playback clock */
+ PLAYER_AUDIO_EXTRACT_NO_SYNC_AND_DEINTERLEAVE = 0x03, /**< No synchronized mono audio stream with playback clock */
} player_audio_extract_option_e;
/**
typedef void (*player_media_packet_video_decoded_cb)(media_packet_h packet, void *user_data);
/**
- * @brief Called to register for notifications about delivering media packet when audio frame is decoded.
+ * @brief Called to register for notifications about delivering media packet when audio data is decoded.
* @since_tizen 5.5
* @remarks The @a packet should be released by calling media_packet_destroy(). \n
* It is recommended to release it as soon as it is rendered, to avoid memory exhaustion.
int player_set_display(player_h player, player_display_type_e type, player_display_h display);
/**
- * @brief Sets a media packet video callback function to be called once per frame.
+ * @brief Sets a callback function for getting the decoded video frame.
* @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
* @remarks This function must be called before calling player_prepare() or player_prepare_async().\n
* A registered callback is called in a separate thread (not in the main loop).\n
int player_set_media_packet_video_frame_decoded_cb(player_h player, player_media_packet_video_decoded_cb callback, void *user_data);
/**
- * @brief Unsets the media packet video frame callback function.
+ * @brief Unsets the callback notifying the decoded video frame.
* @since_tizen @if WEARABLE 2.3.1 @else 2.3 @endif
* @param[in] player The handle to the media player
* @return @c 0 on success,
int player_unset_media_packet_video_frame_decoded_cb(player_h player);
/**
- * @brief Sets a media packet audio decoded callback function.
+ * @brief Sets a callback function for getting the decoded audio data.
* @details This function is used to get audio PCM data of input media content via registered callback.\n
- * This function allows to specify the output PCM format by @ref CAPI_MEDIA_TOOL_MEDIA_FORMAT_MODULE API.
+ * An application can specify the output PCM format by @ref CAPI_MEDIA_TOOL_MEDIA_FORMAT_MODULE API.
* @since_tizen 5.5
* @remarks This function must be called before calling player_prepare() or player_prepare_async().\n
* A registered callback is called in a separate thread (not in the main loop).\n
player_audio_extract_option_e opt, player_media_packet_audio_decoded_cb callback, void *user_data);
/**
- * @brief Unsets the media packet audio frame decoded callback function.
+ * @brief Unsets the callback notifying the decoded audio data.
* @since_tizen 5.5
* @param[in] player The handle to the media player
* @return @c 0 on success,