mu578 commented on code in PR #9308:
URL: https://github.com/apache/nuttx/pull/9308#discussion_r1197283217
##########
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)
+ {
+ info->buffer_size = priv->ops->get_samples(priv->codec) *
Review Comment:
@qiaohaijiao 不可取right now ~ 我估計 ~ 我就敢說這是個好主意 , 同時 , 我得想一想 ~ can you trace
the result 44.1k 48k request ~ ? 現在是深夜 ~ 我現在是傍晚時間 ~ family things to do.
--
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]