aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorPaul Adenot <[email protected]>2020-10-30 15:39:08 +0100
committerPaul Adenot <[email protected]>2020-11-02 15:37:29 +0000
commit81fbf06c9ee209e729d9d353c865294a62f2f528 (patch)
treea60c4c5310f847ad8b0b122a9c0b82d2646409ce /src
parent3be35e9e61e1816a99a1e39900a621fb6897cef7 (diff)
downloadcubeb-81fbf06c9ee209e729d9d353c865294a62f2f528.tar.gz
cubeb-81fbf06c9ee209e729d9d353c865294a62f2f528.zip
Remove context and stream name related code, this is not used on Android.
Diffstat (limited to 'src')
-rw-r--r--src/cubeb_aaudio.cpp12
1 files changed, 3 insertions, 9 deletions
diff --git a/src/cubeb_aaudio.cpp b/src/cubeb_aaudio.cpp
index d429dd5..7bb2550 100644
--- a/src/cubeb_aaudio.cpp
+++ b/src/cubeb_aaudio.cpp
@@ -772,7 +772,6 @@ aaudio_stream_destroy(cubeb_stream * stm)
static int
aaudio_stream_init_impl(
cubeb_stream * stm,
- char const * stream_name,
cubeb_devid input_device,
cubeb_stream_params * input_stream_params,
cubeb_devid output_device,
@@ -921,7 +920,7 @@ aaudio_stream_init_impl(
static int
aaudio_stream_init(cubeb * ctx,
cubeb_stream ** stream,
- char const * stream_name,
+ char const * /* stream_name */,
cubeb_devid input_device,
cubeb_stream_params * input_stream_params,
cubeb_devid output_device,
@@ -934,8 +933,6 @@ aaudio_stream_init(cubeb * ctx,
assert(!input_device);
assert(!output_device);
- (void) stream_name;
-
// atomically find a free stream.
cubeb_stream * stm = NULL;
unique_lock lock;
@@ -972,8 +969,7 @@ aaudio_stream_init(cubeb * ctx,
stm->data_callback = data_callback;
stm->state_callback = state_callback;
- int err = aaudio_stream_init_impl(stm, stream_name, input_device,
- input_stream_params, output_device, output_stream_params, latency_frames);
+ int err = aaudio_stream_init_impl(stm, input_device, input_stream_params, output_device, output_stream_params, latency_frames);
if(err != CUBEB_OK) {
// This is needed since aaudio_stream_destroy will lock the mutex again.
// It's no problem that there is a gap in between as the stream isn't
@@ -1308,9 +1304,7 @@ const static struct cubeb_ops aaudio_ops = {
extern "C" /*static*/ int
-aaudio_init(cubeb ** context, char const * context_name) {
- (void) context_name;
-
+aaudio_init(cubeb ** context, char const * /* context_name */) {
// load api
void * libaaudio = NULL;
#ifndef DISABLE_LIBAAUDIO_DLOPEN