aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/cubeb_audiotrack.c
diff options
context:
space:
mode:
authorPaul ADENOT <[email protected]>2013-06-10 22:47:06 +0200
committerPaul ADENOT <[email protected]>2013-06-10 22:47:06 +0200
commit0403e5b383d4b1387ca17f61e07a7b658e3984e1 (patch)
tree0287efc4585ef2ece9a4fa93d895fe31ccf674e4 /src/cubeb_audiotrack.c
parent48e0ede42c66ec3acacf1f602f6f2d1dca672161 (diff)
downloadcubeb-0403e5b383d4b1387ca17f61e07a7b658e3984e1.tar.gz
cubeb-0403e5b383d4b1387ca17f61e07a7b658e3984e1.zip
Sync back mozilla-central changes.
Diffstat (limited to 'src/cubeb_audiotrack.c')
-rw-r--r--src/cubeb_audiotrack.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/cubeb_audiotrack.c b/src/cubeb_audiotrack.c
index a44c16a..87a53d3 100644
--- a/src/cubeb_audiotrack.c
+++ b/src/cubeb_audiotrack.c
@@ -342,7 +342,7 @@ audiotrack_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_
if (audiotrack_version_is_froyo(ctx)) {
ctx->klass.ctor_froyo(stm->instance,
- params->stream_type,
+ stm->params.stream_type,
stm->params.rate,
AUDIO_FORMAT_PCM_16_BIT,
channels,
@@ -353,7 +353,7 @@ audiotrack_stream_init(cubeb * ctx, cubeb_stream ** stream, char const * stream_
0);
} else {
ctx->klass.ctor(stm->instance,
- params->stream_type,
+ stm->params.stream_type,
stm->params.rate,
AUDIO_FORMAT_PCM_16_BIT,
channels,
@@ -427,6 +427,7 @@ audiotrack_stream_get_position(cubeb_stream * stream, uint64_t * position)
static struct cubeb_ops const audiotrack_ops = {
.init = audiotrack_init,
.get_backend_id = audiotrack_get_backend_id,
+ .get_max_channels_count = audiotrack_get_max_channel_count,
.destroy = audiotrack_destroy,
.stream_init = audiotrack_stream_init,
.stream_destroy = audiotrack_stream_destroy,