pcm_decode: correction to RAW format support

corrects misplaced preprocessor directives for CONFIG_AUDIO_FORMAT_RAW
This commit is contained in:
tobias2johansson 2021-05-28 08:52:28 +02:00 committed by Xiang Xiao
parent ac32d1a68e
commit 57d823b69d

View File

@ -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;
}
/****************************************************************************