* @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.
* @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.
* @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.
* @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);
/**
* @}
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;
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);
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");
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);
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");
}