*/
-#ifndef __TIZEN_AUDIO_META_H__
-#define __TIZEN_AUDIO_META_H__
+#ifndef __TIZEN_CONTENT_MEDIA_AUDIO_H__
+#define __TIZEN_CONTENT_MEDIA_AUDIO_H__
#include <media_content_type.h>
-
#ifdef __cplusplus
extern "C" {
-#endif
+#endif /* __cplusplus */
/**
* @file media_audio.h
- * @brief This file contains the audio metadata API and related structure and enumeration. \n
- * Description of the audio content involves: album, artist, album_artist, author, genre and description tags. \n
+ * @brief This file contains the audio metadata API and related functions to proceed with audio metadata. \n
+ * Description of the audio content involves: album, artist, album_artist, genre and description tags. \n
* Parameters of the recording are also supported such as format, bitrate, duration, size etc.
*/
* @{
*/
-
/**
- * @brief Destroys the audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @brief Clones the audio metadata.
+ * @details This function copies the audio metadata handle from a source to destination.
*
- * @param[in] audio The audio metadata handle
+ * @since_tizen 2.3
*
- * @return @c 0 on success,
+ * @remarks The @a dst should be released using audio_meta_destroy().
+ *
+ * @param[out] dst The destination handle to the audio metadata
+ * @param[in] src The source handle to the audio metadata
+ *
+ * @return @c 0 on success,
* otherwise a negative error value
*
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
+ * @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
*
- * @pre Get a copy of audio metadata handle handle by calling audio_meta_clone().
- *
- * @see audio_meta_clone()
+ * @see audio_meta_destroy()
*/
-int audio_meta_destroy(audio_meta_h audio);
+int audio_meta_clone(audio_meta_h *dst, audio_meta_h src);
/**
- * @brief Clones the audio metadata.
- * @details This function copies the audio metadata handle from source to destination.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @brief Destroys the audio metadata.
+ * @details This function frees all resources related to the audio metadata handle. This handle
+ * no longer can be used to perform any operations. A new handle has to
+ * be created before the next use.
*
- * @remarks The destination handle must be released using audio_meta_destroy().
+ * @since_tizen 2.3
*
- * @param[out] dst The destination handle to audio metadata
- * @param[in] src The source handle to the audio metadata
+ * @param[in] audio The handle to the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*
- * @see audio_meta_destroy()
+ * @pre Get a copy of audio metadata handle handle by calling audio_meta_clone().
+ *
+ * @see audio_meta_clone()
*/
-int audio_meta_clone(audio_meta_h *dst, audio_meta_h src);
+int audio_meta_destroy(audio_meta_h audio);
/**
- * @brief Gets the audio ID of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @brief Gets the ID of the media of the given audio metadata.
+ * @since_tizen 2.3
*
- * @remarks You must release @a media_id using free().
+ * @remarks The @a media_id should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] media_id The ID of the audio
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] media_id The media ID
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
int audio_meta_get_media_id(audio_meta_h audio, char **media_id);
/**
- * @brief Gets the album name of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @brief Gets the album of the given audio metadata.
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no album info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a album_name using free().
+ * @remarks The @a album should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] album_name The name of the album
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] album The album of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_album(audio_meta_h audio, char **album_name);
+int audio_meta_get_album(audio_meta_h audio, char **album);
/**
- * @brief Gets the artist name of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @brief Gets the artist of the given audio metadata.
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no artist info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a artist_name using free().
+ * @remarks The @a artist should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] artist_name The name of the artist
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] artist The artist of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_artist(audio_meta_h audio, char **artist_name);
+int audio_meta_get_artist(audio_meta_h audio, char **artist);
/**
- * @brief Gets the album artist name of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @brief Gets the album artist of the given audio metadata.
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no album artist info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a album_artist_name using free().
+ * @remarks The @a album_artist should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] album_artist_name The name of the album artist
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] album_artist The album artist of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_album_artist(audio_meta_h audio, char **album_artist_name);
+int audio_meta_get_album_artist(audio_meta_h audio, char **album_artist);
/**
- * @brief Gets the genre name of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @brief Gets the genre of the given audio metadata.
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no genre info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a genre_name using free().
+ * @remarks The @a genre should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] genre_name The name of the genre
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] genre The genre of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_genre(audio_meta_h audio, char **genre_name);
+int audio_meta_get_genre(audio_meta_h audio, char **genre);
/**
- * @brief Gets the composer name of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @deprecated Deprecated since 9.0.
+ * @brief Gets the composer of the given audio metadata.
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no composer info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a author_name using free().
+ * @remarks The @a composer should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] composer_name The name of the author of the audio
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] composer The composer of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_composer(audio_meta_h audio, char **composer_name);
+int audio_meta_get_composer(audio_meta_h audio, char **composer) TIZEN_DEPRECATED_API;
/**
* @brief Gets the year of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no year info, the method returns empty string.
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @remarks You must release @a year using free().
+ * @remarks The @a year should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] year The year of the audio file
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] year The year of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
int audio_meta_get_year(audio_meta_h audio, char **year);
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the recorded date of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @details The format of the recorded date may vary depending on the file format. \n
+ * For more details on the recorded date format, refer to the file format specification.
*
- * @remarks You must release @a recorded_date using free().
+ * @since_tizen 2.3
*
- * @param[in] audio The audio metadata handle
- * @param[out] recorded_date The recorded date of the audio file
+ * @remarks The @a recorded_date should be released using free().
*
- * @return @c 0 on success,
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] recorded_date The recorded date of the audio metadata
+ *
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_recorded_date(audio_meta_h audio, char **recorded_date);
+int audio_meta_get_recorded_date(audio_meta_h audio, char **recorded_date) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the copyright notice of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @details If the media content has no copyright info, the method returns empty string.
+ *
+ * @since_tizen 2.3
*
- * @remarks You must release @a copyright using free().
+ * @remarks The @a copyright should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] copyright The audio copyright notice
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] copyright The copyright of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
* @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_copyright(audio_meta_h audio, char **copyright);
+int audio_meta_get_copyright(audio_meta_h audio, char **copyright) TIZEN_DEPRECATED_API;
/**
* @brief Gets the track number of the given audio metadata.
- * @details If the value is an empty string, the method returns "Unknown".
+ * @details If the value is an empty string, the method returns "Unknown". \n
+ * Since 3.0, if the media content has no track info, the method returns empty string.
+ *
+ * @since_tizen 2.3
*
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @remarks The @a track_num should be released using free().
*
- * @param[in] audio The audio metadata handle
- * @param[out] track_num The audio track number
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] track_num The audio track number of the audio metadata
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
+ * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
*/
int audio_meta_get_track_num(audio_meta_h audio, char **track_num);
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the bitrate of the given audio metadata in bitrate per second.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @param[in] audio The audio metadata handle
+ * @param[in] audio The handle to the audio metadata
* @param[out] bit_rate The audio bitrate in bit per second [bps]
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_bit_rate(audio_meta_h audio, int *bit_rate);
+int audio_meta_get_bit_rate(audio_meta_h audio, int *bit_rate) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets bit per sample of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @param [in] audio The handle to the audio metadata
- * @param [out] bitpersample The audio bit per sample
+ * @param[in] audio The handle to the audio metadata
+ * @param[out] bitpersample The audio bit per sample
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-
-int audio_meta_get_bitpersample(audio_meta_h audio, int *bitpersample);
+int audio_meta_get_bitpersample(audio_meta_h audio, int *bitpersample) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the sample rate of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @param[in] audio The audio metadata handle
+ * @param[in] audio The handle to the audio metadata
* @param[out] sample_rate The audio sample rate[hz]
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_sample_rate(audio_meta_h audio, int *sample_rate);
+int audio_meta_get_sample_rate(audio_meta_h audio, int *sample_rate) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the channel of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @param[in] audio The audio metadata handle
+ * @param[in] audio The handle to the audio metadata
* @param[out] channel The channel of the audio
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_channel(audio_meta_h audio, int *channel);
+int audio_meta_get_channel(audio_meta_h audio, int *channel) TIZEN_DEPRECATED_API;
/**
+ * @deprecated Deprecated since 9.0.
* @brief Gets the track duration of the given audio metadata.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
+ * @since_tizen 2.3
*
- * @param[in] audio The audio metadata handle
+ * @param[in] audio The handle to the audio metadata
* @param[out] duration The audio file duration
*
- * @return @c 0 on success,
+ * @return @c 0 on success,
* otherwise a negative error value
*
* @retval #MEDIA_CONTENT_ERROR_NONE Successful
* @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
*/
-int audio_meta_get_duration(audio_meta_h audio, int *duration);
+int audio_meta_get_duration(audio_meta_h audio, int *duration) TIZEN_DEPRECATED_API;
/**
- * @deprecated Deprecated since 2.4. [Use media_info_get_played_count() instead]
- * @brief Gets the number of times the given audio has been played.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] audio The audio metadata handle
- * @param[out] played_count The counter of the audio played
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
+ *@}
*/
-int audio_meta_get_played_count(audio_meta_h audio, int *played_count);
-
-/**
- * @deprecated Deprecated since 2.4. [Use media_info_get_played_time() instead]
- * @brief Gets the played time parameter of an audio.
- * @details This function returns audio's elapsed playback time parameter as a period
- * starting from the beginning of the track.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] audio The audio metadata handle
- * @param[out] played_time The elapsed time of the audio
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- */
-int audio_meta_get_played_time(audio_meta_h audio, time_t *played_time);
-
-/**
- * @deprecated Deprecated since 2.4.
- * @brief Gets the played position parameter of an audio.
- * @details This function returns audio's elapsed playback position parameter as a period
- * starting from the beginning of the track.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] audio The audio metadata handle
- * @param[out] played_position The elapsed time of the audio
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- */
-int audio_meta_get_played_position(audio_meta_h audio, int *played_position);
-
-/**
- * @deprecated Deprecated since 2.4. [Use media_info_increase_played_count() instead]
- * @brief Sets the played count to an audio meta handle.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] audio The audio metadata handle
- * @param[in] played_count The played count of the audio
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @post audio_meta_update_to_db().
- */
-int audio_meta_set_played_count(audio_meta_h audio, int played_count);
-
-/**
- * @deprecated Deprecated since 2.4. [Use media_info_set_played_time() instead]
- * @brief Sets the played time to an audio meta handle.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @param[in] audio The audio metadata handle
- * @param[in] played_time The played time of the audio
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @post audio_meta_update_to_db().
- */
-int audio_meta_set_played_time(audio_meta_h audio, time_t played_time);
-
-/**
- * @deprecated Deprecated since 2.4.
- * @brief Sets the played position to an audio meta handle.
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- *
- * @remarks It is NOT recommended to use this attribute for your application-specific purpose because this attribute can be overwritten by other applications (even 0).
- *
- * @param[in] audio The audio metadata handle
- * @param[in] played_position The played position of the audio
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @post audio_meta_update_to_db().
- */
-int audio_meta_set_played_position(audio_meta_h audio, int played_position);
-
-/**
- * @brief Updates an audio metadata with modified attributes in the media database.
- * @details The function updates the given audio meta in the media database.
- *
- * @since_tizen @if MOBILE 2.3 @elseif WEARABLE 2.3.1 @endif
- * @privlevel public
- * @privilege %http://tizen.org/privilege/content.write
- *
- * @remarks The function should be called after any change in the attributes, to update the media database.
- * For example, after using audio_meta_set_played_count() for changing the count of the played, the
- * audio_meta_update_to_db() function should be called to update the given attributes in the media database. \n
- * Do not call this function in callback function of foreach function like media_info_foreach_media_from_db().
- *
- * @param[in] audio The audio metadata handle
- *
- * @return @c 0 on success,
- * otherwise a negative error value
- *
- * @retval #MEDIA_CONTENT_ERROR_NONE Successful
- * @retval #MEDIA_CONTENT_ERROR_INVALID_PARAMETER Invalid parameter
- * @retval #MEDIA_CONTENT_ERROR_OUT_OF_MEMORY Out of memory
- * @retval #MEDIA_CONTENT_ERROR_INVALID_OPERATION Invalid operation
- * @retval #MEDIA_CONTENT_ERROR_DB_FAILED DB Operation failed
- * @retval #MEDIA_CONTENT_ERROR_DB_BUSY DB Operation busy
- * @retval #MEDIA_CONTENT_ERROR_NETWORK Network fail
- * @retval #MEDIA_CONTENT_ERROR_PERMISSION_DENIED Permission denied
- *
- * @pre This function requires opened connection to content service by media_content_connect().
- *
- * @see media_content_connect()
- * @see audio_meta_set_played_count()
- * @see audio_meta_set_played_time()
- * @see audio_meta_set_played_position()
- */
-int audio_meta_update_to_db(audio_meta_h audio);
-
-/**
- * @}
- */
-
#ifdef __cplusplus
}
-#endif
+#endif /* __cplusplus */
-#endif /*__TIZEN_AUDIO_META_H__*/
+#endif /*__TIZEN_CONTENT_MEDIA_AUDIO_H__*/