[ACR-1370][2] Apply the changed API naming 50/203150/1 accepted/tizen/unified/20190412.124534 submit/tizen/20190410.073409
authorEunhye Choi <eunhae1.choi@samsung.com>
Wed, 10 Apr 2019 07:26:24 +0000 (16:26 +0900)
committerEunhye Choi <eunhae1.choi@samsung.com>
Wed, 10 Apr 2019 07:26:28 +0000 (16:26 +0900)
- add 'audio' prefix into API naming
  not to be confused with the pitch value of 360 video

Change-Id: Ib27ba5706d25046e451d4dd4902b19d191b6938a

include/player.h
src/player.c
test/player_test.c

index f0d6e6d..dc3850a 100644 (file)
@@ -2350,11 +2350,11 @@ int player_get_video_roi_area(player_h player, double *x_scale, double *y_scale,
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
  * @pre The player state must be #PLAYER_STATE_IDLE.
- * @see player_pitch_is_enabled()
- * @see player_pitch_set_value()
- * @see player_pitch_get_value()
+ * @see player_audio_pitch_is_enabled()
+ * @see player_audio_pitch_set_value()
+ * @see player_audio_pitch_get_value()
  */
-int player_pitch_set_enabled(player_h player, bool enabled);
+int player_audio_pitch_set_enabled(player_h player, bool enabled);
 
 /**
  * @brief Gets the audio pitch control status.
@@ -2367,11 +2367,11 @@ int player_pitch_set_enabled(player_h player, bool enabled);
  * @retval #PLAYER_ERROR_NONE Successful
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
- * @see player_pitch_set_enabled()
- * @see player_pitch_set_value()
- * @see player_pitch_get_value()
+ * @see player_audio_pitch_set_enabled()
+ * @see player_audio_pitch_set_value()
+ * @see player_audio_pitch_get_value()
  */
-int player_pitch_is_enabled(player_h player, bool *enabled);
+int player_audio_pitch_is_enabled(player_h player, bool *enabled);
 
 /**
  * @brief Sets the audio pitch value.
@@ -2385,12 +2385,12 @@ int player_pitch_is_enabled(player_h player, bool *enabled);
  * @retval #PLAYER_ERROR_NONE Successful
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
- * @pre The pitch control must be enabled by calling player_pitch_set_enabled() function.
- * @see player_pitch_set_enabled()
- * @see player_pitch_is_enabled()
- * @see player_pitch_get_value()
+ * @pre The pitch control must be enabled by calling player_audio_pitch_set_enabled() function.
+ * @see player_audio_pitch_set_enabled()
+ * @see player_audio_pitch_is_enabled()
+ * @see player_audio_pitch_get_value()
  */
-int player_pitch_set_value(player_h player, float value);
+int player_audio_pitch_set_value(player_h player, float value);
 
 /**
  * @brief Gets the audio pitch value.
@@ -2404,11 +2404,11 @@ int player_pitch_set_value(player_h player, float value);
  * @retval #PLAYER_ERROR_NONE Successful
  * @retval #PLAYER_ERROR_INVALID_PARAMETER Invalid parameter
  * @retval #PLAYER_ERROR_INVALID_OPERATION Invalid operation
- * @see player_pitch_set_enabled()
- * @see player_pitch_is_enabled()
- * @see player_pitch_set_value()
+ * @see player_audio_pitch_set_enabled()
+ * @see player_audio_pitch_is_enabled()
+ * @see player_audio_pitch_set_value()
  */
-int player_pitch_get_value(player_h player, float *value);
+int player_audio_pitch_get_value(player_h player, float *value);
 
 /**
  * @}
index d642b61..c149be1 100644 (file)
@@ -5140,7 +5140,7 @@ int player_is_replaygain_enabled(player_h player, bool *enabled)
        return ret;
 }
 
-int player_pitch_set_enabled(player_h player, bool enabled)
+int player_audio_pitch_set_enabled(player_h player, bool enabled)
 {
        PLAYER_INSTANCE_CHECK(player);
        int ret = PLAYER_ERROR_NONE;
@@ -5156,7 +5156,7 @@ int player_pitch_set_enabled(player_h player, bool enabled)
        return ret;
 }
 
-int player_pitch_is_enabled(player_h player, bool *enabled)
+int player_audio_pitch_is_enabled(player_h player, bool *enabled)
 {
        PLAYER_INSTANCE_CHECK(player);
        PLAYER_NULL_ARG_CHECK(enabled);
@@ -5178,7 +5178,7 @@ int player_pitch_is_enabled(player_h player, bool *enabled)
        return ret;
 }
 
-int player_pitch_set_value(player_h player, float value)
+int player_audio_pitch_set_value(player_h player, float value)
 {
        PLAYER_INSTANCE_CHECK(player);
        PLAYER_CHECK_CONDITION(value >= 0.5 && value <= 2.0, PLAYER_ERROR_INVALID_PARAMETER, "PLAYER_ERROR_INVALID_PARAMETER");
@@ -5197,7 +5197,7 @@ int player_pitch_set_value(player_h player, float value)
        return ret;
 }
 
-int player_pitch_get_value(player_h player, float *value)
+int player_audio_pitch_get_value(player_h player, float *value)
 {
        PLAYER_INSTANCE_CHECK(player);
        PLAYER_NULL_ARG_CHECK(value);
index b47048b..d949b4f 100644 (file)
@@ -2065,20 +2065,20 @@ static void set_audio_offload_enabled(bool enabled)
 static void pitch_set_enabled(bool enabled)
 {
        bool is_enabled = false;
-       player_pitch_is_enabled(g_player[0], &is_enabled);
+       player_audio_pitch_is_enabled(g_player[0], &is_enabled);
 
        g_print("pitch enabled %d -> %d \n", is_enabled, enabled);
-       if (player_pitch_set_enabled(g_player[0], enabled) != PLAYER_ERROR_NONE)
+       if (player_audio_pitch_set_enabled(g_player[0], enabled) != PLAYER_ERROR_NONE)
                g_print("failed to pitch_set_enabled\n");
 }
 
 static void pitch_set_value(float level)
 {
        float curr = 0.0;
-       player_pitch_get_value(g_player[0], &curr);
+       player_audio_pitch_get_value(g_player[0], &curr);
 
        g_print("pitch level %1.3f -> %1.3f \n", curr, level);
-       if (player_pitch_set_value(g_player[0], level) != PLAYER_ERROR_NONE)
+       if (player_audio_pitch_set_value(g_player[0], level) != PLAYER_ERROR_NONE)
                g_print("failed to set pitch value\n");
 }