aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorAlex Chronopoulos <[email protected]>2019-01-21 14:41:14 +0200
committerAlex Chronopoulos <[email protected]>2019-01-21 14:41:14 +0200
commit67d37c16be84fcc469531d4b6f70eae8a2867a66 (patch)
tree991ead06db364917bc9e3e51655558fcf6914d5d
parent54925f84f1428845ebf2f15679b2d872c00cb16e (diff)
downloadcubeb-67d37c16be84fcc469531d4b6f70eae8a2867a66.tar.gz
cubeb-67d37c16be84fcc469531d4b6f70eae8a2867a66.zip
Add cubeb_stream_params::layout in the code example
-rw-r--r--include/cubeb/cubeb.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/cubeb/cubeb.h b/include/cubeb/cubeb.h
index dde6bd7..df00a87 100644
--- a/include/cubeb/cubeb.h
+++ b/include/cubeb/cubeb.h
@@ -53,12 +53,14 @@ extern "C" {
output_params.format = CUBEB_SAMPLE_FLOAT32NE;
output_params.rate = rate;
output_params.channels = 2;
+ output_params.layout = CUBEB_LAYOUT_UNDEFINED;
output_params.prefs = CUBEB_STREAM_PREF_NONE;
cubeb_stream_params input_params;
input_params.format = CUBEB_SAMPLE_FLOAT32NE;
input_params.rate = rate;
input_params.channels = 1;
+ input_params.layout = CUBEB_LAYOUT_UNDEFINED;
input_params.prefs = CUBEB_STREAM_PREF_NONE;
cubeb_stream * stm;