diff options
Diffstat (limited to 'modules/opensles/player.c')
-rw-r--r-- | modules/opensles/player.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/modules/opensles/player.c b/modules/opensles/player.c index 347240f..59964f0 100644 --- a/modules/opensles/player.c +++ b/modules/opensles/player.c @@ -4,6 +4,7 @@ * Copyright (C) 2010 Creytiv.com */ #include <re.h> +#include <rem.h> #include <baresip.h> #include <SLES/OpenSLES.h> #include "SLES/OpenSLES_Android.h" @@ -153,6 +154,12 @@ int opensles_player_alloc(struct auplay_st **stp, const struct auplay *ap, if (!stp || !ap || !prm || !wh) return EINVAL; + if (prm->fmt != AUFMT_S16LE) { + warning("opensles: player: unsupported sample format (%s)\n", + aufmt_name(prm->fmt)); + return ENOTSUP; + } + debug("opensles: opening player %uHz, %uchannels\n", prm->srate, prm->ch); |