This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/incubator-nuttx.git
commit 57d823b69d6193fbb68afab400fbf1bc30a6c32c Author: tobias2johansson <[email protected]> AuthorDate: Fri May 28 08:52:28 2021 +0200 pcm_decode: correction to RAW format support corrects misplaced preprocessor directives for CONFIG_AUDIO_FORMAT_RAW --- audio/pcm_decode.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/audio/pcm_decode.c b/audio/pcm_decode.c index 69530f1..15a4116 100644 --- a/audio/pcm_decode.c +++ b/audio/pcm_decode.c @@ -1182,14 +1182,16 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev, priv->export.upper(priv->export.priv, AUDIO_CALLBACK_COMPLETE, NULL, OK); #endif - } #ifndef CONFIG_AUDIO_FORMAT_RAW + } + /* This is not a WAV file! */ auderr("ERROR: Invalid PCM WAV file\n"); - return -EINVAL; #endif + + return -EINVAL; } /****************************************************************************
