aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2024-03-27 17:47:31 +0100
committerPaul Adenot <[email protected]>2024-03-27 17:47:31 +0100
commitce5911e9f4286a4a4e3a6a9253654d83bbb12dd3 (patch)
treec4d716c3f8148644f0aed902c92f2aaa2d5ac472
parent1572ea3e8d50514d3adaba1ad17272f57b5b331c (diff)
downloadcubeb-ce5911e9f4286a4a4e3a6a9253654d83bbb12dd3.tar.gz
cubeb-ce5911e9f4286a4a4e3a6a9253654d83bbb12dd3.zip
Some DACs can go up to 768kHzhigher-rate
-rw-r--r--src/cubeb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/cubeb.c b/src/cubeb.c
index f6bc158..b0db033 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 > 384000 ||
+ output_stream_params->rate > 768000 ||
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 > 384000 ||
+ input_stream_params->rate > 768000 ||
input_stream_params->channels < 1 ||
input_stream_params->channels > UINT8_MAX) {
return CUBEB_ERROR_INVALID_FORMAT;