qiaohaijiao commented on code in PR #9308:
URL: https://github.com/apache/nuttx/pull/9308#discussion_r1197235993
##########
arch/sim/src/sim/posix/sim_alsa.c:
##########
@@ -581,6 +585,12 @@ static int sim_audio_ioctl(struct audio_lowerhalf_s *dev,
int cmd,
info->nbuffers = priv->nbuffers;
info->buffer_size = priv->buffer_size;
+
+ if (!priv->playback && priv->ops->get_samples)
Review Comment:
root cause is: period time is 20ms, just 3572 bytes in PCM. But lame
encoder need 1152*4 bytes once. apb buffer not enough, so crash.
playback flag is not needed, how about use MAX here?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]