diff options
Diffstat (limited to 'audio')
-rw-r--r-- | audio/filter/af_rubberband.c | 2 | ||||
-rw-r--r-- | audio/filter/af_scaletempo.c | 9 | ||||
-rw-r--r-- | audio/out/ao.c | 2 |
3 files changed, 7 insertions, 6 deletions
diff --git a/audio/filter/af_rubberband.c b/audio/filter/af_rubberband.c index c7b6317c13..4c2b69049d 100644 --- a/audio/filter/af_rubberband.c +++ b/audio/filter/af_rubberband.c @@ -361,7 +361,7 @@ const struct mp_user_filter_entry af_rubberband = { OPT_CHOICE("channels", channels, 0, ({"apart", RubberBandOptionChannelsApart}, {"together", RubberBandOptionChannelsTogether})), - OPT_DOUBLE("pitch-scale", scale, M_OPT_RANGE, .min = 0.01, .max = 100), + OPT_DOUBLE("pitch-scale", scale, 0, .min = 0.01, .max = 100), {0} }, }, diff --git a/audio/filter/af_scaletempo.c b/audio/filter/af_scaletempo.c index ed1df5725e..b76abc8e78 100644 --- a/audio/filter/af_scaletempo.c +++ b/audio/filter/af_scaletempo.c @@ -30,6 +30,7 @@ * License along with mpv. If not, see <http://www.gnu.org/licenses/>. */ +#include <float.h> #include <stdlib.h> #include <string.h> #include <limits.h> @@ -608,10 +609,10 @@ const struct mp_user_filter_entry af_scaletempo = { .scale_nominal = 1.0, }, .options = (const struct m_option[]) { - OPT_FLOAT("scale", scale_nominal, M_OPT_MIN, .min = 0.01), - OPT_FLOAT("stride", ms_stride, M_OPT_MIN, .min = 0.01), - OPT_FLOAT("overlap", percent_overlap, M_OPT_RANGE, .min = 0, .max = 1), - OPT_FLOAT("search", ms_search, M_OPT_MIN, .min = 0), + OPT_FLOAT("scale", scale_nominal, 0, .min = 0.01, .max = DBL_MAX), + OPT_FLOAT("stride", ms_stride, 0, .min = 0.01, .max = DBL_MAX), + OPT_FLOAT("overlap", percent_overlap, 0, .min = 0, .max = 1), + OPT_FLOAT("search", ms_search, 0, .min = 0, .max = DBL_MAX), OPT_CHOICE("speed", speed_opt, 0, ({"pitch", SCALE_PITCH}, {"tempo", SCALE_TEMPO}, diff --git a/audio/out/ao.c b/audio/out/ao.c index b75323051a..0136afca15 100644 --- a/audio/out/ao.c +++ b/audio/out/ao.c @@ -140,7 +140,7 @@ const struct m_sub_options ao_conf = { OPT_STRING("audio-device", audio_device, UPDATE_AUDIO), OPT_STRING("audio-client-name", audio_client_name, UPDATE_AUDIO), OPT_DOUBLE("audio-buffer", audio_buffer, - UPDATE_AUDIO | M_OPT_MIN | M_OPT_MAX, .min = 0, .max = 10), + UPDATE_AUDIO, .min = 0, .max = 10), {0} }, .size = sizeof(OPT_BASE_STRUCT), |