Add setting sample rate for output stream. --- android/client/if-audio.c | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/android/client/if-audio.c b/android/client/if-audio.c index bbd6a8c..48b973b 100644 --- a/android/client/if-audio.c +++ b/android/client/if-audio.c @@ -420,6 +420,17 @@ static void set_parameters_p(int argc, const char **argv) stream_out->common.set_parameters(&stream_out->common, argv[2]); } +static void set_sample_rate_p(int argc, const char **argv) +{ + RETURN_IF_NULL(if_audio); + RETURN_IF_NULL(stream_out); + + if (argc < 3) + return; + + stream_out->common.set_sample_rate(&stream_out->common, atoi(argv[2])); +} + static struct method methods[] = { STD_METHOD(init), STD_METHOD(cleanup), @@ -436,6 +447,7 @@ static struct method methods[] = { STD_METHOD(get_sample_rate), STD_METHODH(get_parameters, "<A2dpSuspended;closing>"), STD_METHODH(set_parameters, "<A2dpSuspended=value;closing=value>"), + STD_METHODH(set_sample_rate, "<sample rate>"), END_METHOD }; -- 1.8.5.2 -- To unsubscribe from this list: send the line "unsubscribe linux-bluetooth" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html