diff options
Diffstat (limited to 'src/cubeb.c')
-rw-r--r-- | src/cubeb.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/src/cubeb.c b/src/cubeb.c index b3d32ee..6b542fc 100644 --- a/src/cubeb.c +++ b/src/cubeb.c @@ -501,6 +501,22 @@ cubeb_stream_get_current_device(cubeb_stream * stream, } int +cubeb_stream_get_max_request_size(cubeb_stream * stream, + uint32_t * max_request_size) +{ + if (!stream || !max_request_size) { + return CUBEB_ERROR_INVALID_PARAMETER; + } + + if (!stream->context->ops->stream_get_max_request_size) { + return CUBEB_ERROR_NOT_SUPPORTED; + } + + return stream->context->ops->stream_get_max_request_size(stream, + max_request_size); +} + +int cubeb_stream_device_destroy(cubeb_stream * stream, cubeb_device * device) { if (!stream || !device) { |