mirror of
https://github.com/apache/nuttx.git
synced 2026-06-02 01:21:26 +08:00
pcm_decode: correction to RAW format support
corrects misplaced preprocessor directives for CONFIG_AUDIO_FORMAT_RAW
This commit is contained in:
committed by
Xiang Xiao
parent
ac32d1a68e
commit
57d823b69d
+4
-2
@@ -1182,14 +1182,16 @@ static int pcm_enqueuebuffer(FAR struct audio_lowerhalf_s *dev,
|
|||||||
priv->export.upper(priv->export.priv, AUDIO_CALLBACK_COMPLETE,
|
priv->export.upper(priv->export.priv, AUDIO_CALLBACK_COMPLETE,
|
||||||
NULL, OK);
|
NULL, OK);
|
||||||
#endif
|
#endif
|
||||||
}
|
|
||||||
|
|
||||||
#ifndef CONFIG_AUDIO_FORMAT_RAW
|
#ifndef CONFIG_AUDIO_FORMAT_RAW
|
||||||
|
}
|
||||||
|
|
||||||
/* This is not a WAV file! */
|
/* This is not a WAV file! */
|
||||||
|
|
||||||
auderr("ERROR: Invalid PCM WAV file\n");
|
auderr("ERROR: Invalid PCM WAV file\n");
|
||||||
return -EINVAL;
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
return -EINVAL;
|
||||||
}
|
}
|
||||||
|
|
||||||
/****************************************************************************
|
/****************************************************************************
|
||||||
|
|||||||
Reference in New Issue
Block a user