From 46906c7bba281a9cc277881e9cf9e32909f8dbf2 Mon Sep 17 00:00:00 2001 From: Paul Adenot Date: Wed, 7 Feb 2024 15:32:12 +0100 Subject: 384kHz ought to be enough for anybody --- include/cubeb/cubeb.h | 2 +- src/cubeb.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h index 17ead45..c970246 100644 --- a/include/cubeb/cubeb.h +++ b/include/cubeb/cubeb.h @@ -274,7 +274,7 @@ typedef enum { typedef struct { cubeb_sample_format format; /**< Requested sample format. One of #cubeb_sample_format. */ - uint32_t rate; /**< Requested sample rate. Valid range is [1000, 192000]. */ + uint32_t rate; /**< Requested sample rate. Valid range is [1000, 384000]. */ uint32_t channels; /**< Requested channel count. Valid range is [1, 8]. */ cubeb_channel_layout layout; /**< Requested channel layout. This must be consistent with the diff --git a/src/cubeb.c b/src/cubeb.c index 16bb84a..bc994f9 100644 --- a/src/cubeb.c +++ b/src/cubeb.c @@ -95,7 +95,7 @@ validate_stream_params(cubeb_stream_params * input_stream_params, XASSERT(input_stream_params || output_stream_params); if (output_stream_params) { if (output_stream_params->rate < 1000 || - output_stream_params->rate > 192000 || + output_stream_params->rate > 384000 || output_stream_params->channels < 1 || output_stream_params->channels > UINT8_MAX) { return CUBEB_ERROR_INVALID_FORMAT; @@ -103,7 +103,7 @@ validate_stream_params(cubeb_stream_params * input_stream_params, } if (input_stream_params) { if (input_stream_params->rate < 1000 || - input_stream_params->rate > 192000 || + input_stream_params->rate > 384000 || input_stream_params->channels < 1 || input_stream_params->channels > UINT8_MAX) { return CUBEB_ERROR_INVALID_FORMAT; -- cgit v1.2.3