aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_jack.cpp
diff options
context:
space:
mode:
authorMatthew Gregan <[email protected]>2016-08-23 12:53:20 +1200
committerMatthew Gregan <[email protected]>2016-08-23 13:01:00 +1200
commitee9fae443e1718d4cd99053e0196ff05220cd914 (patch)
treebcb03029a164c9adbd57d5f24481bfc1ab579f50 /src/cubeb_jack.cpp
parentdc7fc393d9242de52dc013f5259fa9ca92a87982 (diff)
downloadcubeb-ee9fae443e1718d4cd99053e0196ff05220cd914.tar.gz
cubeb-ee9fae443e1718d4cd99053e0196ff05220cd914.zip
jack: Fix various compiler warnings.
Diffstat (limited to 'src/cubeb_jack.cpp')
-rw-r--r--src/cubeb_jack.cpp15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/cubeb_jack.cpp b/src/cubeb_jack.cpp
index 8f32f3d..ef97c6c 100644
--- a/src/cubeb_jack.cpp
+++ b/src/cubeb_jack.cpp
@@ -283,8 +283,6 @@ cbjack_graph_order_callback(void * arg)
{
cubeb * ctx = (cubeb *)arg;
int i;
- uint32_t rate;
-
jack_latency_range_t latency_range;
jack_nframes_t port_latency, max_latency = 0;
@@ -623,13 +621,13 @@ jack_init (cubeb ** context, char const * context_name)
}
static char const *
-cbjack_get_backend_id(cubeb * context)
+cbjack_get_backend_id(cubeb * /*context*/)
{
return "jack";
}
static int
-cbjack_get_max_channel_count(cubeb * ctx, uint32_t * max_channels)
+cbjack_get_max_channel_count(cubeb * /*ctx*/, uint32_t * max_channels)
{
*max_channels = MAX_CHANNELS;
return CUBEB_OK;
@@ -643,7 +641,7 @@ cbjack_get_latency(cubeb_stream * stm, unsigned int * latency_ms)
}
static int
-cbjack_get_min_latency(cubeb * ctx, cubeb_stream_params params, uint32_t * latency_ms)
+cbjack_get_min_latency(cubeb * ctx, cubeb_stream_params /*params*/, uint32_t * latency_ms)
{
*latency_ms = ctx->jack_latency;
return CUBEB_OK;
@@ -703,7 +701,7 @@ cbjack_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_
cubeb_stream_params * input_stream_params,
cubeb_devid output_device,
cubeb_stream_params * output_stream_params,
- unsigned int latency_frames,
+ unsigned int /*latency_frames*/,
cubeb_data_callback data_callback,
cubeb_state_callback state_callback,
void * user_ptr)
@@ -725,6 +723,9 @@ cbjack_stream_init(cubeb * context, cubeb_stream ** stream, char const * stream_
return CUBEB_ERROR_INVALID_FORMAT;
}
+ if (input_device || output_device)
+ return CUBEB_ERROR_NOT_SUPPORTED;
+
*stream = NULL;
// Find a free stream.
@@ -956,7 +957,7 @@ cbjack_stream_get_current_device(cubeb_stream * stm, cubeb_device ** const devic
}
static int
-cbjack_stream_device_destroy(cubeb_stream * stream,
+cbjack_stream_device_destroy(cubeb_stream * /*stream*/,
cubeb_device * device)
{
if (device->input_name)